]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd-compat-units: do not create runlevel command
authorRoy.Li <rongqing.li@windriver.com>
Fri, 27 Sep 2013 05:52:27 +0000 (05:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Sep 2013 20:59:43 +0000 (21:59 +0100)
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@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-compat-units.bb

index 9b4a8a4abcb6427974e16463305239565dad78cc..c47c14bf957ae221f58a9009bcdbafd57aa69cbd 100644 (file)
@@ -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 = " \