set +e in passwd code
authorMichael Prokop <mika@grml.org>
Mon, 6 Nov 2006 11:00:40 +0000 (12:00 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 6 Nov 2006 11:00:40 +0000 (12:00 +0100)
chroot-script

index 0d75042..7fa771b 100644 (file)
@@ -69,9 +69,10 @@ fi
 echo "Activating shadow passwords."
 shadowconfig on
 echo "Setting password for user root:"
-# TODO: typing the wrong password will exit chroot script
+set +e # do not exit if passwd returns error due to missmatching passwords
 passwd
 echo ""
+set -e # restore default behaviour again
 
 if ! [ -f /etc/hosts ] ; then
    echo "Setting up /etc/hosts"