X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=1a736ee4727a0fbaa4120faa053572320a99f544;hb=06021ae3a93b2e3a21058fdbf4d69d646dd83312;hp=b2f30a6f90424beb80822421ef46239120860751;hpb=3a6abc058679bab9acfc941de7999fe636148a6d;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index b2f30a6..1a736ee 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -41,8 +41,14 @@ if grep -q 'updatebase.GRMLBASE' ${target}/etc/udev/kernel-upgrade 2>/dev/null ; $ROOTCMD rm -f /etc/udev/kernel-upgrade fi -echo "Updating package list" -$ROOTCMD apt-get update +set +u +if ifclass RELEASE ; then +set -u + echo "Not updating package list as RELEASE class is set." +else + echo "Updating package list" + $ROOTCMD apt-get update +fi echo "Cleaning apt places" $ROOTCMD apt-get check 2>/dev/null