diff options
author | Roy.Li <rongqing.li@windriver.com> | 2013-09-04 06:56:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-14 08:29:41 +0100 |
commit | 019dafd930d773751c4381a4ab762dec8f0d1564 (patch) | |
tree | 3769512c02e09c3d60bde6e43876e6f926ae6465 | |
parent | 576a19ed6c71ea04b39df806d4838cc74a015b26 (diff) | |
download | poky-019dafd930d773751c4381a4ab762dec8f0d1564.tar.gz |
systemd: link runlevel from systemctl
using update-alternatives to link runlevel from systemctl, as on Fedora 18
(From OE-Core rev: 8909b3b71b2ac792ae092b8f0a6c2ade28f6b73b)
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/systemd/systemd_206.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd_206.bb b/meta/recipes-core/systemd/systemd_206.bb index 3f3a6c37d1..2d0ce9b062 100644 --- a/meta/recipes-core/systemd/systemd_206.bb +++ b/meta/recipes-core/systemd/systemd_206.bb | |||
@@ -262,7 +262,7 @@ python __anonymous() { | |||
262 | # TODO: | 262 | # TODO: |
263 | # u-a for runlevel and telinit | 263 | # u-a for runlevel and telinit |
264 | 264 | ||
265 | ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff" | 265 | ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff runlevel" |
266 | 266 | ||
267 | ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd" | 267 | ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd" |
268 | ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" | 268 | ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" |
@@ -284,6 +284,10 @@ ALTERNATIVE_TARGET[poweroff] = "${base_bindir}/systemctl" | |||
284 | ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff" | 284 | ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff" |
285 | ALTERNATIVE_PRIORITY[poweroff] ?= "300" | 285 | ALTERNATIVE_PRIORITY[poweroff] ?= "300" |
286 | 286 | ||
287 | ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl" | ||
288 | ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" | ||
289 | ALTERNATIVE_PRIORITY[runlevel] ?= "300" | ||
290 | |||
287 | pkg_postinst_udev-hwdb () { | 291 | pkg_postinst_udev-hwdb () { |
288 | if test -n "$D"; then | 292 | if test -n "$D"; then |
289 | ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ | 293 | ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ |