Red Hat Bugzilla – Bug 179580
[PATCH] Add a --root/-r option to chkconfig/ntsysv
Last modified: 2014-03-16 22:57:56 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1
Description of problem:
chkconfig needs a --root option to manage the startup services in a system image used for in my case cluster installations. Can be useful for nfsboot too I guess.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Not very adapted to sending in patches are we?
I guess "chkconfig needs an upstream" could be another bug entry...
Created attachment 123966 [details]
Add --root option to chkconfig and ntsysv
Damn, bugwilla does suck for sending in patches...
Why not run it with 'chroot ... chkconfig ...'?
Hmmm, it works. I don't like chroot much because it relies on having a fully
working system in the image while not having proc, dev and all mounted there,
but in the specific case of chkconfig it works.
Created attachment 124438 [details]
Adds --root option and test script.
Alternative implementation based on 1.3.26. Less invasive approach touches
Also includes unit_test script for new --root option to chkconfig.
Needs translations and man page update.
Fedora Core 5 and Fedora Core 6 are, as we're sure you've noticed, no longer
test releases. We're cleaning up the bug database and making sure important bug
reports filed against these test releases don't get lost. It would be helpful if
you could test this issue with a released version of Fedora or with the latest
development / test release. Thanks for your help and for your patience.
[This is a bulk message for all open FC5/FC6 test release bugs. I'm adding
myself to the CC list for each bug, so I'll see any comments you make after this
and do my best to make sure every issue gets proper attention.]
chkconfig has yet to grow this functionality. Bill, could you comment on
whether you think chkconfig *should* have this functionality, and either merge
the patch (which probably needs work by now), or close this bug?
My apologies for the delay. I do stand by comment #2; this is really better done
with chroot itself.