From: Michael Prokop Date: Thu, 8 Dec 2011 14:45:16 +0000 (+0100) Subject: 98-clean-chroot: also get rid of symlinks of *.pre_fcopy files X-Git-Tag: v0.17.0~6 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=c5d10137c4ab85785e5282041aeda3226590d3c6 98-clean-chroot: also get rid of symlinks of *.pre_fcopy files For example /etc/motd is pointing to /var/run/motd. Thanks Ulrich for reporting. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 189b652..712ef68 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -84,6 +84,7 @@ fi echo "Cleaning and removing some misc files and directories" find $target/etc -type f -name *.pre_fcopy -delete +find $target/etc -type l -name *.pre_fcopy -delete rm -rf --one-file-system $target/etc/sysconfig/* \ $target/etc/motd.dpkg-* $target/etc/auto.master.*dpkg* \ $target/etc/samba/*.SID $target/etc/samba/*.tdb \