projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c222ea
)
GRMLBASE/98-clean-chroot: also nuke *.xz files
author
Michael Prokop
<mika@grml.org>
Tue, 13 Jul 2021 13:42:43 +0000
(15:42 +0200)
committer
Michael Prokop
<mika@grml.org>
Tue, 13 Jul 2021 13:42:43 +0000
(15:42 +0200)
Files like /var/log/apt/eipp.log.xz are present nowadays
etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
patch
|
blob
|
history
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
(executable)
--- 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
}