98-clean-chroot: also get rid of symlinks of *.pre_fcopy files
authorMichael Prokop <mika@grml.org>
Thu, 8 Dec 2011 14:45:16 +0000 (15:45 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 8 Dec 2011 14:45:17 +0000 (15:45 +0100)
For example /etc/motd is pointing to /var/run/motd.
Thanks Ulrich for reporting.

etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot

index 189b652..712ef68 100755 (executable)
@@ -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 \