should add support for kernel cmdlines like gentoo=no<init.d name>.d so gentoo=noiptables.d would prevent iptables init.d script from starting at boot need to make sure this doesnt prevent people from later doing: /etc/init.d/iptables start
Interactive boot not good enough for you?
Created attachment 124528 [details, diff] Patch for /sbin/rc
Created attachment 124530 [details] Usage instructions for rc-skip.diff
Comment on attachment 124530 [details] Usage instructions for rc-skip.diff Installation: Apply `rc-skip.diff` to your `/sbin/rc` file Usage (LILO): boot: Gentoo gentoo-rc-skip=xdm,ntpd,samba This kernel command line will prevent Gentoo from running the following startup scripts: xdm, ntpd and samba. Enjoy.
If we skip iptables and we then use rc to change to a different runlevel that contains iptables, should rc start iptables? I'm thinking that if we do this then it should only affect the services when the system first boots.
correct, this should only affect first boot it's annoying when you boot with say nox (to disable xdm), fix your X issues, and then try to start xdm by hand only to have the thing continue to abort for you
OK, how about if we want to skip foo, but bar needs it? Do we skip bar as well or do we start foo anyway?
We skip bar. IMHO.
*** Bug 185526 has been marked as a duplicate of this bug. ***
That makes things overly complicated I think. Also, we have the issue where the user could take out a very needed service. For example, if they skip localmount then loads of services would fail. If we simply remove the service from the automatic start list and nothing needs or uses it then it will be removed. This should suit most people as the majority of the skipped services would be modules or xdm I think.
i say we let the users shoot themselves in the foot if they say "skip localmount", then you pretend localmount was started automatically and try to do everything as if it were ... otherwise you screw the people who do know what they're doing
I've committed a patch to our svn that works like so noinitd=xdm,modules Which will cause the xdm and modules init scripts not to be run, but only for the first boot.