X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/26fe2bd2474d668fb77526efb35dae239bab8765..5b5636bab78f5352fc0c66477dc40b042df80fb3:/common/usr/lib/xen-tools/debian.d/96-clear-root-password diff --git a/common/usr/lib/xen-tools/debian.d/96-clear-root-password b/common/usr/lib/xen-tools/debian.d/96-clear-root-password new file mode 100755 index 0000000..2812872 --- /dev/null +++ b/common/usr/lib/xen-tools/debian.d/96-clear-root-password @@ -0,0 +1,21 @@ +#!/bin/sh +# +# This script unsets the root password, so the VM owner can log in at +# the console. +# +# Must come after 95-install-base-system, since that disables root's password. +# + +prefix=$1 + +if [ -e /usr/lib/xen-tools/common.sh ]; then + . /usr/lib/xen-tools/common.sh +else + . ./hooks/common.sh +fi + +logMessage Script $0 starting + +chroot ${prefix} passwd root -d + +logMessage Script $0 finished