X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=4a5e0cb5d28f1175b5d66a1415c7f52a43020f2d;hb=e5e457851f7202fbcc46f5ce836dc2616279c647;hp=1d18dd3ed58cc9b8c75f86b8b61b5744830e74e8;hpb=462afb6bf4b12814e77ebd618a03200cb77eb95f;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 1d18dd3..4a5e0cb 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -113,6 +113,9 @@ zero(){ done } +echo "Removing possible leftovers from update-pciids runs" +rm -f "${target}"/wget-log* + echo "Cleaning log and cache directories" nuke ${target}/var/log ${target}/var/cache zero ${target}/var/account/pacct \ @@ -219,5 +222,10 @@ else $ROOTCMD updatedb --prunepaths='/tmp /usr/tmp /var/tmp /grml /root /proc /sys' fi +if [ -r "${target}/etc/machine-id" ] ; then + echo "Removing /etc/machine-id generated by systemd" + rm -f "$target/etc/machine-id" +fi + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2