reorder execution of apt-get install and dpkg-reconfigure
authorMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 10:40:38 +0000 (11:40 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 10:40:38 +0000 (11:40 +0100)
chroot-script

index ee169b0..9de9aad 100644 (file)
@@ -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