lorax: Don't touch /etc/mtab in cleanup
ACK. Although we should really make the broken-symlink handling stuff
smarter than this. Someday.
-w
On Thu, Jan 05, 2012 at 04:39:38PM -0800, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl@redhat.com>
>
> ---
> share/runtime-cleanup.tmpl | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl
> index fb348ab..546009c 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
> --
> 1.7.6.4
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|