unset root password in xen-create-image 0.0.17
authorGreg Price <price@mit.edu>
Thu, 19 Feb 2009 03:22:26 +0000 (22:22 -0500)
committerGreg Price <price@mit.edu>
Thu, 19 Feb 2009 03:22:26 +0000 (22:22 -0500)
Also don't bother in the installer image, because it doesn't help.

svn path=/trunk/packages/invirt-autoinstaller/; revision=2169

common/usr/lib/xen-tools/debian.d/36-clear-root-password [new file with mode: 0755]
common/usr/lib/xen-tools/edgy.d/36-clear-root-password [new symlink]
debian/changelog
debian/invirt-autoinstaller-guest.postinst [deleted file]

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 (executable)
index 0000000..e3ed53d
--- /dev/null
@@ -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 (symlink)
index 0000000..323800f
--- /dev/null
@@ -0,0 +1 @@
+../debian.d/36-clear-root-password
\ No newline at end of file
index 569512e..08fa220 100644 (file)
@@ -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 <price@mit.edu>  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 (file)
index a0226cf..0000000
+++ /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