X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=0c7c3c838f324494d1e4cd945831fff9abd0e73c;hp=f9e3b0e8acd8d5f697fcd58f29c93de8b0c417f0;hb=8a519f769780741276e62de6b749108719292403;hpb=9661ed19d8209b2505f4224f6613c81cfbc18629 diff --git a/chroot-script b/chroot-script index f9e3b0e..0c7c3c8 100755 --- a/chroot-script +++ b/chroot-script @@ -17,7 +17,7 @@ set -e # exit on any error # use aptitude only if it's available if [ -x /usr/bin/aptitude ] ; then - APTINSTALL='aptitude -y install ' + APTINSTALL='aptitude -y --without-recommends install ' APTUPDATE='aptitude update' else APTINSTALL='apt-get --force-yes -y install' @@ -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 }