From 31c60b119bf221c84467b736c48a8efa87f41f7d Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 5 Jan 2012 16:38:45 -0800 Subject: [PATCH] lorax: Don't touch /etc/mtab in cleanup --- share/runtime-cleanup.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl index fb348ab1..546009cc 100644 --- a/share/runtime-cleanup.tmpl +++ b/share/runtime-cleanup.tmpl @@ -358,4 +358,5 @@ runcmd find ${root} -name "*.pyc" -type f -exec ln -sf /dev/null {} \; ## remove any broken links in /etc, /usr, /lib ## (broken systemd service links lead to confusing noise at boot) ## NOTE: not checking /var because we want to keep /var/run -runcmd chroot ${root} find -L /etc /usr /lib -xdev -type l -delete +## NOTE: Excluding /etc/mtab which links to /proc/self/mounts for systemd +runcmd chroot ${root} find -L /etc /usr /lib -xdev -type l -and \! -name "mtab" -delete