X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=7206de9de90faf05b0af5f6ed1ba1910f31d888b;hb=5081ff4ba56b55285db726a5544bf83944918cba;hp=470a1113d68bb14e32d2c63ac4d29827a784807d;hpb=5c9bdb3231969bc0660ca53847474fd0628b4f07;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script index 470a111..7206de9 100755 --- a/chroot-script +++ b/chroot-script @@ -6,8 +6,6 @@ # License: This file is licensed under the GPL v2. ################################################################################ -set -e # exit on any error - . /etc/debootstrap/config || exit 1 . /etc/debootstrap/variables || exit 1 @@ -226,9 +224,10 @@ kernel() { reconfigure() { if [ -n "$RECONFIGURE" ] ; then for package in $RECONFIGURE ; do - 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." + if dpkg --list $package >/dev/null 2>&1 | grep -q '^ii' ; then + DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg-reconfigure $package || \ + echo "Warning: $package does not exist, can not reconfigure it." + fi done fi }