Clear the root password
authorMichele Tartara <mtartara@google.com>
Thu, 11 Jul 2013 10:18:20 +0000 (12:18 +0200)
committerMichele Tartara <mtartara@google.com>
Thu, 11 Jul 2013 13:27:31 +0000 (15:27 +0200)
Debootstrap used to leave the instances without a root password set, making the
first login quite hard.

This commits changes the situation, by setting an empty root password (as
already stated by the documentation).

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

create

diff --git a/create b/create
index 0105022..442667c 100755 (executable)
--- a/create
+++ b/create
@@ -113,6 +113,9 @@ else
   fi
 fi
 
+# reset the root password
+chroot $TMPDIR passwd -d root
+
 cp -p /etc/hosts $TMPDIR/etc/hosts
 cp -p /etc/resolv.conf $TMPDIR/etc/resolv.conf
 echo $instance > $TMPDIR/etc/hostname