Debootstrap used to leaves the instance 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 <[email protected]>
---
 create |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/create b/create
index 0105022..442667c 100755
--- 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
-- 
1.7.10.4

Reply via email to