X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=64563cb48f66cdb00692b20ab4aca58f7e94df16;hp=f9e3b0e8acd8d5f697fcd58f29c93de8b0c417f0;hb=27c6e3747c7a02dd9dd6ad71fe2b3d00f5a0b739;hpb=9661ed19d8209b2505f4224f6613c81cfbc18629 diff --git a/chroot-script b/chroot-script index f9e3b0e..64563cb 100755 --- a/chroot-script +++ b/chroot-script @@ -200,7 +200,8 @@ reconfigure() { # }}} # set password of user root {{{ -passwords() { +passwords() +{ echo "Activating shadow passwords." shadowconfig on @@ -218,12 +219,15 @@ passwords() { echo -n "Retype new UNIX password for user root: " read -s b echo - echo root:"$a" | chpasswd -m if [ "$a" != "$b" ] ; then echo "Sorry, passwords do not match. Retry." + a='1' + b='2' + else + echo root:"$a" | chpasswd -m + unset a + unset b fi - unset a - unset b done fi }