systemd: make runlevel work in non-runlevel targets
authorChen Qi <Qi.Chen@windriver.com>
Wed, 3 Sep 2014 07:09:00 +0000 (15:09 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Sep 2014 10:09:04 +0000 (11:09 +0100)
commitedc14db8b1b1b69a344be538c97eebca4cc8d74b
tree87cce2f9dbd428b0af5f2b4daefc632438d5e7ac
parent1ca29275b0a8449de4881ced1e446a358709bd54
systemd: make runlevel work in non-runlevel targets

Previously, after booting into the targets like multi-user.target or
graphical.target, the output of `runlevel' command is 'unknown'.

This is confusing for users. Normally, we would expect mutli-user.target
would have a `runlevel' output of 'N 3'.
This is the behaviour of Fedora20.

This patch installs symlinks for systemd-update-utmp-runlevel.service
in do_install task to fix the above problem.

(From OE-Core rev: cb7e692ec895ff9c15966faf29c9a84c0e78cdf5)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_216.bb