X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=712ef68a495efbe7f3d39d06e3cbd3a6e3516cdb;hb=436d892c18acb32cf96f4e4c2cc80e73ea8b7386;hp=a3e5db898381e166278c721df53752b395a13a8a;hpb=8970e98092d1e3708b7c6a9b41029e3161354a5e;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 a3e5db8..712ef68 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 @@ -82,6 +84,7 @@ fi echo "Cleaning and removing some misc files and directories" find $target/etc -type f -name *.pre_fcopy -delete +find $target/etc -type l -name *.pre_fcopy -delete rm -rf --one-file-system $target/etc/sysconfig/* \ $target/etc/motd.dpkg-* $target/etc/auto.master.*dpkg* \ $target/etc/samba/*.SID $target/etc/samba/*.tdb \ @@ -106,7 +109,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 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 }