Last change
on this file since 2535 was
2365,
checked in by broder, 15 years ago
|
In invirt-autoinstaller:
- When we're installing the world, be sure to block debconf prompts from
coming up.
|
-
Property svn:executable set to
*
|
File size:
1012 bytes
|
Rev | Line | |
---|
[2073] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # This script installs the sort of things you expect on an Ubuntu |
---|
| 4 | # system |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | prefix=$1 |
---|
| 8 | |
---|
| 9 | # |
---|
| 10 | # Source the common functions |
---|
| 11 | # |
---|
| 12 | if [ -e /usr/lib/xen-tools/common.sh ]; then |
---|
| 13 | . /usr/lib/xen-tools/common.sh |
---|
| 14 | else |
---|
| 15 | . ./hooks/common.sh |
---|
| 16 | fi |
---|
| 17 | |
---|
| 18 | logMessage Script $0 starting |
---|
| 19 | |
---|
| 20 | installDebianPackage ${prefix} ubuntu-minimal |
---|
| 21 | installDebianPackage ${prefix} ubuntu-standard |
---|
| 22 | |
---|
[2165] | 23 | |
---|
[2117] | 24 | # For Debian, there is no metapackage, but we can pull in the |
---|
[2165] | 25 | # equivalent based on package priority. |
---|
[2073] | 26 | # |
---|
[2117] | 27 | # (On Ubuntu Hardy, this will additionally pull in libdns32, libisc32, |
---|
[2165] | 28 | # and nfs-common, which seems fairly benign.) |
---|
| 29 | |
---|
[2117] | 30 | installDebianPackage ${prefix} aptitude |
---|
[2165] | 31 | |
---|
| 32 | logMessage "Installing Debian standard system to prefix ${prefix}" |
---|
| 33 | echo -e '#!/bin/bash\nexit 101\n' > ${prefix}/usr/sbin/policy-rc.d |
---|
| 34 | chmod +x ${prefix}/usr/sbin/policy-rc.d |
---|
[2365] | 35 | chroot ${prefix} env DEBIAN_FRONTEND=noninteractive aptitude -y install '~prequired|~pimportant|~pstandard' |
---|
[2165] | 36 | rm -f {$prefix}/usr/sbin/policy-rc.d |
---|
[2117] | 37 | |
---|
[2165] | 38 | |
---|
[2117] | 39 | # |
---|
[2073] | 40 | # Log our finish |
---|
| 41 | # |
---|
| 42 | logMessage Script $0 finished |
---|
Note: See
TracBrowser
for help on using the repository browser.