[oe-commits] Roy.Li : systemd-compat-units: do not create runlevel command

git at git.openembedded.org git at git.openembedded.org
Mon Sep 30 20:57:11 UTC 2013


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

Author: Roy.Li <rongqing.li at windriver.com>
Date:   Fri Sep 27 05:52:27 2013 +0000

systemd-compat-units: do not create runlevel command

It seems strange that runlevel always returns 1, The comment says it is
related to sysvinit, but if we enable systemd, sysvinit will not be
installed. and we have created a link for runlevel to systemctl if
systemd is installed.

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-compat-units.bb |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
index 9b4a8a4..c47c14b 100644
--- a/meta/recipes-core/systemd/systemd-compat-units.bb
+++ b/meta/recipes-core/systemd/systemd-compat-units.bb
@@ -21,11 +21,6 @@ do_install() {
 	install -m 0644 ${WORKDIR}/machineid.service ${D}${systemd_unitdir}/system
 	ln -sf ../machineid.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
 	ln -sf ../machineid.service ${D}${systemd_unitdir}/system/basic.target.wants/
-
-	# hack to make old style sysvinit postinsts succeed
-	install -d ${D}${bindir}
-	echo "echo 1" > ${D}${bindir}/runlevel
-	chmod 0755 ${D}${bindir}/runlevel
 }
 
 SYSTEMD_DISABLED_SYSV_SERVICES = " \



More information about the Openembedded-commits mailing list