X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=0ced334c1e38d25cd435f636956b710037a3bb42;hp=ee169b0b961248854597a511b4c7e07e14260496;hb=401cadc18d81e0a7006e7fca519de688983d2b06;hpb=ac7c30ae8c832f783d4e2dc577da235ebbb54616 diff --git a/chroot-script b/chroot-script index ee169b0..0ced334 100644 --- a/chroot-script +++ b/chroot-script @@ -17,12 +17,6 @@ if [ -n "MIRROR_LIST" ] ; then echo $MIRROR_LIST > /etc/apt/sources.list fi -if [ -n "$RECONFIGURE" ] ; then - for package in $RECONFIGURE ; do - dpkg --list $package && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it." - done -fi - # install additional packages if [ "$PACKAGES" = 'yes' ] ; then if ! [ -r /etc/debootstrap/packages ] ; then @@ -34,8 +28,16 @@ if [ "$PACKAGES" = 'yes' ] ; then fi fi +if [ -n "$RECONFIGURE" ] ; then + for package in $RECONFIGURE ; do + dpkg --list $package && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it." + done +fi + # set password of user root -# shadowconfig +echo "Activating shadow passwords." +shadowconfig on +echo "Setting password for user root:" passwd if ! [ -f /etc/hosts ] ; then