From c5d10137c4ab85785e5282041aeda3226590d3c6 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 8 Dec 2011 15:45:16 +0100 Subject: [PATCH] 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. --- etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 1 + 1 file changed, 1 insertion(+) 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 \ -- 2.1.4