# }}}
# set password of user root {{{
-passwords() {
+passwords()
+{
echo "Activating shadow passwords."
shadowconfig on
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
}
# }}}
# finalize {{{
+einfo "Removing ${CHROOT_VARIABLES}" ; rm "$CHROOT_VARIABLES" ; eend $?
+einfo "Removing ${STAGES}" ; rmdir "$STAGES" ; eend $?
+
# Remove temporary mountpoint again
if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
einfo "Removing directory ${MNTPOINT}" ; rmdir "$MNTPOINT" ; eend $?
- einfo "Removing ${CHROOT_VARIABLES}" ; rm "$CHROOT_VARIABLES" ; eend $?
fi
# }}}