Don't confuse {KB, MB, GB} with {KiB, MiB, GiB}.
[invirt/packages/invirt-autoinstaller.git] / common / usr / lib / xen-tools / debian.d / 98-install-base-system
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
23 # For Debian, there is no metapackage, but we can pull in the
24 # equivalent based on package priority
25 #
26 # (On Ubuntu Hardy, this will additionally pull in libdns32, libisc32,
27 # and nfs-common, which seems fairly benign
28 installDebianPackage ${prefix} aptitude
29 chroot ${prefix} aptitude -y install '~prequired|~pimportant|~pstandard'
30
31 #
32 # Log our finish
33 #
34 logMessage Script $0 finished