X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=9df620492c8e1473fff329cf7695e6e005dc8479;hp=a3e5db898381e166278c721df53752b395a13a8a;hb=4152229391fd4af0ab4b88408a3efff2e7f52f37;hpb=d9a34890461d7b9fc6bd380834f2426c6869ba6e diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index a3e5db8..9df6204 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -106,7 +106,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/*' 2>/dev/null); do :> "$i" done }