X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=0ced334c1e38d25cd435f636956b710037a3bb42;hp=d6166dc9560b73954bbb5075c305b2331ceda099;hb=401cadc18d81e0a7006e7fca519de688983d2b06;hpb=60b6fb7e72db7ac369862b58d3a4a4c7d346e250 diff --git a/chroot-script b/chroot-script index d6166dc..0ced334 100644 --- a/chroot-script +++ b/chroot-script @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Nov 03 11:26:43 CET 2006 [mika] +# Latest change: Fre Nov 03 11:37:19 CET 2006 [mika] ################################################################################ set -e @@ -13,10 +13,8 @@ set -e [ -r /proc/1 ] || mount -t proc none /proc -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 +if [ -n "MIRROR_LIST" ] ; then + echo $MIRROR_LIST > /etc/apt/sources.list fi # install additional packages @@ -30,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