unset root password in xen-create-image
[invirt/packages/invirt-autoinstaller.git] / common / usr / lib / xen-tools / debian.d / 98-install-base-system
index 042b554..d6737ae 100755 (executable)
@@ -20,13 +20,21 @@ 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
+# equivalent based on package priority.
 #
 # (On Ubuntu Hardy, this will additionally pull in libdns32, libisc32,
-# and nfs-common, which seems fairly benign
+# and nfs-common, which seems fairly benign.)
+
 installDebianPackage ${prefix} aptitude
+
+logMessage "Installing Debian standard system to prefix ${prefix}"
+echo -e '#!/bin/bash\nexit 101\n' > ${prefix}/usr/sbin/policy-rc.d
+chmod +x ${prefix}/usr/sbin/policy-rc.d
 chroot ${prefix} aptitude -y install '~prequired|~pimportant|~pstandard'
+rm -f {$prefix}/usr/sbin/policy-rc.d
+
 
 #
 # Log our finish