FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 01-05-2012, 11:39 PM
"Brian C. Lane"
 
Default lorax: Don't touch /etc/mtab in cleanup

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
 
Old 01-09-2012, 07:00 PM
Will Woods
 
Default 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
 

Thread Tools




All times are GMT. The time now is 09:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org