X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=5bfcb4429badb7ffa0728b1cfba7fa1d263d7fe1;hp=29cd840872bf70e8fed97cb273be99c0c6acbba5;hb=75700fa47e63a9b329fd784b6588fde3c4a29f39;hpb=a454a1ad00616dd231602e66782483010384723b diff --git a/chroot-script b/chroot-script index 29cd840..5bfcb44 100644 --- a/chroot-script +++ b/chroot-script @@ -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 }