Skip to content

Commit

Permalink
do not zero out /var/spool in GRMLBASE/98-clean-chroot [Closes: issue…
Browse files Browse the repository at this point in the history
…1065]

/var/spool might contain user provided data like a local mirror
provided via MIRROR_DIRECTORY, so it's a showstopper to touch that.

Thanks: Marek Malevic
  • Loading branch information
mika committed Oct 27, 2011
1 parent e0306d0 commit 4eac603
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ zero(){

echo "Cleaning log and cache directories"
nuke ${target}/var/log ${target}/var/cache
zero ${target}/var/local ${target}/var/log \
${target}/var/spool ${target}/var/lib/games \
${target}/var/cache/man ${target}/var/lib/nfs \
${target}/var/lib/xkb ${target}/var/mail/grml \
${target}/var/account/pacct
zero ${target}/var/account/pacct \
${target}/var/cache/man \
${target}/var/lib/games \
${target}/var/lib/nfs \
${target}/var/lib/xkb \
${target}/var/local \
${target}/var/log \
${target}/var/mail/grml

# on /run we don't have to create it
if [ -d ${target}/var/run ] ; then
Expand Down

0 comments on commit 4eac603

Please sign in to comment.