3 # This script installs the sort of things you expect on an Ubuntu
10 # Source the common functions
12 if [ -e /usr/lib/xen-tools/common.sh ]; then
13 . /usr/lib/xen-tools/common.sh
18 logMessage Script $0 starting
20 installDebianPackage ${prefix} ubuntu-minimal
21 installDebianPackage ${prefix} ubuntu-standard
24 # For Debian, there is no metapackage, but we can pull in the
25 # equivalent based on package priority.
27 # (On Ubuntu Hardy, this will additionally pull in libdns32, libisc32,
28 # and nfs-common, which seems fairly benign.)
30 installDebianPackage ${prefix} aptitude
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
35 chroot ${prefix} aptitude -y install '~prequired|~pimportant|~pstandard'
36 rm -f {$prefix}/usr/sbin/policy-rc.d
42 logMessage Script $0 finished