X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=7fa771b45d2df38251857a710562c15f293765a7;hp=0d7504229ecbb34812a7ef3197fe3e1c1de05aab;hb=3e5f8f2863a824e35b3c70d5ec1b0edb24ee8647;hpb=8ed1cbb8a2555167c3ee0bce4d78b01b4de233d4 diff --git a/chroot-script b/chroot-script index 0d75042..7fa771b 100644 --- a/chroot-script +++ b/chroot-script @@ -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"