From: Michael Prokop Date: Fri, 3 Nov 2006 10:40:38 +0000 (+0100) Subject: reorder execution of apt-get install and dpkg-reconfigure X-Git-Tag: 0.1~20 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=21fca981c5a7d896281d2891518a7c181339f359 reorder execution of apt-get install and dpkg-reconfigure --- diff --git a/chroot-script b/chroot-script index ee169b0..9de9aad 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,6 +28,12 @@ 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 passwd