From: Greg Price Date: Thu, 19 Feb 2009 03:22:26 +0000 (-0500) Subject: unset root password in xen-create-image X-Git-Tag: 0.0.17^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/commitdiff_plain/e7dfc96a0dd85b748515774bc6c274a45e64b8b6?ds=sidebyside unset root password in xen-create-image Also don't bother in the installer image, because it doesn't help. svn path=/trunk/packages/invirt-autoinstaller/; revision=2169 --- diff --git a/common/usr/lib/xen-tools/debian.d/36-clear-root-password b/common/usr/lib/xen-tools/debian.d/36-clear-root-password new file mode 100755 index 0000000..e3ed53d --- /dev/null +++ b/common/usr/lib/xen-tools/debian.d/36-clear-root-password @@ -0,0 +1,19 @@ +#!/bin/sh +# +# This script unsets the root password, so the VM owner can log in at +# the console. +# + +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 diff --git a/common/usr/lib/xen-tools/edgy.d/36-clear-root-password b/common/usr/lib/xen-tools/edgy.d/36-clear-root-password new file mode 120000 index 0000000..323800f --- /dev/null +++ b/common/usr/lib/xen-tools/edgy.d/36-clear-root-password @@ -0,0 +1 @@ +../debian.d/36-clear-root-password \ No newline at end of file diff --git a/debian/changelog b/debian/changelog index 569512e..08fa220 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +invirt-autoinstaller (0.0.17) unstable; urgency=low + + * Unset root password in xen-create-image. + * Don't bother unsetting the password in the installer image, because it + doesn't actually affect the guest. + + -- Greg Price Wed, 18 Feb 2009 22:12:26 -0500 + invirt-autoinstaller (0.0.16) unstable; urgency=low * Unset root password in guest, so it's unset in autoinstalled images. diff --git a/debian/invirt-autoinstaller-guest.postinst b/debian/invirt-autoinstaller-guest.postinst deleted file mode 100644 index a0226cf..0000000 --- a/debian/invirt-autoinstaller-guest.postinst +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -case "$1" in - configure) - passwd root -d - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0