#!/bin/sh
#
#  This script installs the sort of things you expect on an Ubuntu
#  system
#

prefix=$1

#
#  Source the common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
    . /usr/lib/xen-tools/common.sh
else
    . ./hooks/common.sh
fi

logMessage Script $0 starting

installDebianPackage ${prefix} ubuntu-minimal
installDebianPackage ${prefix} ubuntu-standard

# For Debian, there is no metapackage, but we can pull in the
# equivalent based on package priority
#
# (On Ubuntu Hardy, this will additionally pull in libdns32, libisc32,
# and nfs-common, which seems fairly benign
installDebianPackage ${prefix} aptitude
chroot ${prefix} aptitude install '~prequired|~pimportant|~pstandard'

#
# Log our finish
#
logMessage Script $0 finished