chiark / gitweb /
everywhere: remove configurability of sysv runlevel to target mapping
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Feb 2015 19:17:49 +0000 (20:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Feb 2015 19:20:14 +0000 (20:20 +0100)
commitd5d8429a12c4b1ef0dcd226c0904f00f4fa4898a
treefe51dbfdc85d449e740bb7c673a24a78882360f2
parentac49d36faef5739d0e9db5742b780c4fb88e68bf
everywhere: remove configurability of sysv runlevel to target mapping

With this change runlevel 2, 3, 4 are mapped to multi-user.target for
good, and 5 to graphical.target. This was already the previous mapping
but is now no longer reconfigurable, but hard-coded into the core.

This should generally simplify things, but also fix one bug: the
sysv-generator previously generated symlinks to runlevel[2-5].target
units, which possibly weren't picked up if these aliases were otherwise
only referenced by the real names "multi-user.target" and
"graphical.target".

We keep compat aliases "runlevel[2345].target" arround for cases where
this target name is explicitly requested.
Makefile.am
src/core/main.c
src/initctl/initctl.c
src/shared/special.h
src/systemctl/systemctl.c
src/sysv-generator/sysv-generator.c
src/update-utmp/update-utmp.c