Patchwork systemd-compat-units: do not create runlevel command

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Sept. 27, 2013, 5:52 a.m.
Message ID <1380261147-21348-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/59065/
State New
Headers show

Comments

rongqing.li@windriver.com - Sept. 27, 2013, 5:52 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

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>
---
 meta/recipes-core/systemd/systemd-compat-units.bb |    5 -----
 1 file changed, 5 deletions(-)
Ross Burton - Sept. 27, 2013, 12:02 p.m.
On 27 September 2013 06:52,  <rongqing.li@windriver.com> wrote:
> 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.

Whoops, meant to fix that ages ago!

Acked-By: Ross Burton <ross.burton@intel.com>.

Ross

Patch

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 = " \