[oe-commits] Roy.Li : systemd: link runlevel from systemctl

git at git.openembedded.org git at git.openembedded.org
Sat Sep 14 07:17:53 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 8909b3b71b2ac792ae092b8f0a6c2ade28f6b73b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8909b3b71b2ac792ae092b8f0a6c2ade28f6b73b

Author: Roy.Li <rongqing.li at windriver.com>
Date:   Wed Sep  4 06:56:41 2013 +0000

systemd: link runlevel from systemctl

using update-alternatives to link runlevel from systemctl, as on Fedora 18

Signed-off-by: Roy.Li <rongqing.li at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 3f3a6c3..2d0ce9b 100644
--- a/meta/recipes-core/systemd/systemd_206.bb
+++ b/meta/recipes-core/systemd/systemd_206.bb
@@ -262,7 +262,7 @@ python __anonymous() {
 # TODO:
 # u-a for runlevel and telinit
 
-ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff"
+ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff runlevel"
 
 ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd"
 ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
@@ -284,6 +284,10 @@ ALTERNATIVE_TARGET[poweroff] = "${base_bindir}/systemctl"
 ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff"
 ALTERNATIVE_PRIORITY[poweroff] ?= "300"
 
+ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl"
+ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel"
+ALTERNATIVE_PRIORITY[runlevel] ?= "300"
+
 pkg_postinst_udev-hwdb () {
 	if test -n "$D"; then
 		${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \



More information about the Openembedded-commits mailing list