Skip to content

Commit

Permalink
GRMLBASE/98-clean-chroot: also nuke *.xz files
Browse files Browse the repository at this point in the history
Files like /var/log/apt/eipp.log.xz are present nowadays
  • Loading branch information
mika committed Jul 13, 2021
1 parent 9c222ea commit a4b23f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
Expand Up @@ -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
}
Expand Down

0 comments on commit a4b23f1

Please sign in to comment.