source: trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/95-install-base-system @ 2171

Last change on this file since 2171 was 2171, checked in by price, 16 years ago

renumber our 9x-* xen-tools hooks to make some room

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