Comment 6 for bug 1575572

Revision history for this message
Martin Pitt (pitti) wrote :

I tested the output of "runlevel" and the env under Debian sid with sysvinit-core:

 - In an rcS script: runlevel says "unknown" (env has RUNLEVEL=S and PREVLEVEL=N)
 - In an rc[2345] script: runlevel says "N 2" (env has RUNLEVEL=2 and PREVLEVEL=N)

With systemd, runlevel says "unknown" until finishing the boot, and indeed systemd-update-utmp only ran once. That's the bug we need to fix here.