Paul Rogers wrote:
I'm still working on my 7.2 installation, of course. On the expectation that the LFS init process hasn't changed much, I'm wondering at the rationale, and the confusion created around runlevel S.You're now using rcS.d in place of rcsysinit.d. /etc/inittab says: ... "si::sysinit:/etc/rc.d/init.d/rc S l0:0:wait:/etc/rc.d/init.d/rc 0 l1:S1:wait:/etc/rc.d/init.d/rc 1" ... "init(8)" (which hasn't been updated since 2004!) says: ... (1) "Runlevel S is not really meant to be used directly, but more for the scripts that are executed when entering runlevel 1." ... (2) "Runlevel S or s bring the system to single user mode and do not require an /etc/inittab file. In single user mode, /sbin/sulogin is invoked on /dev/console." ... (3) "When init is requested to change the runlevel, it sends the warning signal SIGTERM to all processes that are undefined in the new runlevel. It then waits 5 seconds before forcibly terminating these processes via the SIGKILL signal." ... (4) "BOOTFLAGS It is possible to pass a number of flags to init from the boot monitor (eg. LILO). Init accepts the following flags: -s, S, single Single user mode boot. In this mode /etc/inittab is examined and the bootup rc scripts are usually run before the single user mode shell is started." So init(8) itself is introducing some confusion because what it claims init is doing in quote 3 above is being done through the rc script. I get that if one doesn't jump to conclusions, what LFS is doing means runlevel S (which doesn't need to be in inittab according to (2) above) and "single" in the kernel parameters has nothing to do with rcS.d. My question is about the rationale for introducing that possible confusion. Why was that a good thing? Is init(8) just so out of date it's wrong?
Yes, init is old. For single user mode, we are using run level 1 although the word 'using' is a bit of a misnomer because I've never actually found a reason to use it.
We are using the files in /etc/rc.d/rcS.d to initialize the system regardless of run level. Note that there are no K entries there at all and we never update it in BLFS. 'init S' just does the same as 'init 1'
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
