Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138188 - "rc-update show" issues warnings with SCM-managed /etc/initd.d
Summary: "rc-update show" issues warnings with SCM-managed /etc/initd.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-27 05:29 UTC by Daniele Varrazzo
Modified: 2006-10-16 10:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Varrazzo 2006-06-27 05:29:33 UTC
I use to store my system configuration in a subversion repository, so i can trace system updates and (hope to) revert damages.

Since last update world (which pulled in sys-apps/baselayout-1.11.15-r3), the rc-update output shows lots of "Broken runlevel" errors, because it attempts to walk into .svn directories.

The following patch fixes the issue for me. All hidden files and directories (with their content) are excluded from check. It can be made more selective, of course.

--- /home/piro/rc-update.orig   2006-06-27 14:09:18.000000000 +0200
+++ /sbin/rc-update     2006-06-27 14:11:28.000000000 +0200
@@ -142,7 +142,7 @@
        for x in $(find "${ROOT}"etc/runlevels -xtype l) ; do
                ewarn "Broken runlevel entry: ${x}"
        done
-       for x in $(find "${ROOT}"etc/runlevels ! -type l -a ! -type d) ; do
+       for x in $(find "${ROOT}"etc/runlevels ! -type l -a ! -type d | egrep -v "/\.") ; do
                ewarn "Invalid runlevel entry: ${x}"
        done
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-10-16 07:44:28 UTC
In our SVN repo for both 1.12 and 1.13 branches - tweaked slightly :)

Thanks for the patch
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-10-16 10:00:47 UTC
alpha2 is out. so we can mark this as fixed.