runtime-cleanup: log broken symlinks being removed
Print out a message about each broken symlink being removed. Also, no
need to bother looking in /lib since it's just a symlink to /usr/lib.
---
share/runtime-cleanup.tmpl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
-## remove any broken links in /etc, /usr, /lib
+## remove any broken links in /etc or /usr
## (broken systemd service links lead to confusing noise at boot)
## NOTE: not checking /var because we want to keep /var/run
## 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
+runcmd chroot ${root} find -L /etc /usr -xdev -type l -and ! -name "mtab"
+ -printf "removing broken symbolic link %p -> %l
" -delete
--
1.7.10.2
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list