Use DEBIAN_FRONTEND inside chroot-script
authorMichael Prokop <mika@grml.org>
Mon, 16 Apr 2007 13:05:58 +0000 (15:05 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 16 Apr 2007 13:05:58 +0000 (15:05 +0200)
chroot-script

index 29cd840..5bfcb44 100644 (file)
@@ -130,7 +130,9 @@ kernel() {
 reconfigure() {
   if [ -n "$RECONFIGURE" ] ; then
      for package in $RECONFIGURE ; do
-         dpkg --list $package 1>/dev/null 2>/dev/null && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it."
+         dpkg --list $package 1>/dev/null 2>/dev/null && \
+         DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg-reconfigure $package || \
+         echo "Warning: $package does not exist, can not reconfigure it."
      done
   fi
 }