X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=189b652b7e97031cd759d2ea830cfa0dd7e15dc3;hb=db5741b5b41210da401504a3493d9a284da32e9c;hp=9df620492c8e1473fff329cf7695e6e005dc8479;hpb=4152229391fd4af0ab4b88408a3efff2e7f52f37;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 9df6204..189b652 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -17,6 +17,8 @@ fi echo "Creating ~/.zshrc" touch $target/root/.zshrc +$ROOTCMD rm -f /etc/apt/apt.conf.d/90grml-apt-proxy.conf + if [ -x $target/usr/sbin/localepurge ] ; then echo "Running localepurge" $ROOTCMD localepurge @@ -106,7 +108,7 @@ nuke(){ # set all files in the given directories to a length of zero zero(){ - for i in $(find "$@" -type f -size +0 -not -name \*.ini -not -path '*/fai/*' 2>/dev/null); do + for i in $(find "$@" -type f -size +0 -not -name \*.ini -not -path '*/fai/*' -not -name install_packages.list 2>/dev/null); do :> "$i" done }