From: Michael Prokop Date: Tue, 13 Jul 2021 13:42:43 +0000 (+0200) Subject: GRMLBASE/98-clean-chroot: also nuke *.xz files X-Git-Tag: v0.38.5~3 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=a4b23f178e1d935aa586677cb68d0d513528d8f6 GRMLBASE/98-clean-chroot: also nuke *.xz files Files like /var/log/apt/eipp.log.xz are present nowadays --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index a00ebd6..3b07e5e 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -101,7 +101,7 @@ rm -rf --one-file-system $target/etc/sysconfig/* \ # remove only "temporary" or saved files in the given directories nuke(){ - for i in $(find "$@" -name \*.gz -o -name \*.bz2 -o -name \*.0 2>/dev/null); do + for i in $(find "$@" -name \*.gz -o -name \*.bz2 -o -name \*.xz -o -name \*.0 2>/dev/null); do rm -f --one-file-system "$i" done }