[Pkg-sysvinit-devel] Re: init do not pass correct PREVLEVEL when switching from runlevel S

Petter Reinholdtsen pere at hungry.com
Thu Sep 14 05:42:05 UTC 2006


[Henrique de Moraes Holschuh]
> S has never been the single user runlevel.  WTF is init doing with S that
> got you worried?

It is storing 'S' in the runlevel variable, and passing it as
RUNLEVEL=S when you do 'telinit s', and 'telinit 1' is not the same as
'telinit s'.  For 'telinit 1', it runs the stop scripts before asking
for the password, for 'telinit s', it just ask for the password.

This made me confused, and I started reading the source.  Our init
implementation uses 'S' as the runlevel code for single user, and do
not understand that '1' and 'S' are equivalent.  See also #372669 and
#387351, which got me started on this testing.

> Petter, read my paper at http://people.debian.org/~hmh/ *right*
> *now*. I mean it.  It is outdated, but it explains a damn great deal
> of what happens and why.

I've read it before, and will read it again.

> What you describe is the the truckload of crap inherited from System
> V, and that is something you really ought to know about.

Yes.  But our boot system seem to include such crap in the source, so
we need to address it. :/

And yes, I know it is an optimization, and I care about these
optimizations because I want to make the boot quicker.

Friendly,
-- 
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list