summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2013-09-27 05:52:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-30 22:11:57 +0100
commitf9c26fbefb535ee318bf398dc0b13226889fb6d4 (patch)
tree241401eba572a7dc27552a95f018b2cf6948cc06 /meta/recipes-core/systemd
parent4312f5a534bb4029341c076f25ac5be2de69b37f (diff)
downloadpoky-f9c26fbefb535ee318bf398dc0b13226889fb6d4.tar.gz
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. (From OE-Core rev: adc11d60fd4b555198d6653cd71eb1372e0b03a0) 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>
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd-compat-units.bb5
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 9b4a8a4abc..c47c14bf95 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() {
21 install -m 0644 ${WORKDIR}/machineid.service ${D}${systemd_unitdir}/system 21 install -m 0644 ${WORKDIR}/machineid.service ${D}${systemd_unitdir}/system
22 ln -sf ../machineid.service ${D}${systemd_unitdir}/system/sysinit.target.wants/ 22 ln -sf ../machineid.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
23 ln -sf ../machineid.service ${D}${systemd_unitdir}/system/basic.target.wants/ 23 ln -sf ../machineid.service ${D}${systemd_unitdir}/system/basic.target.wants/
24
25 # hack to make old style sysvinit postinsts succeed
26 install -d ${D}${bindir}
27 echo "echo 1" > ${D}${bindir}/runlevel
28 chmod 0755 ${D}${bindir}/runlevel
29} 24}
30 25
31SYSTEMD_DISABLED_SYSV_SERVICES = " \ 26SYSTEMD_DISABLED_SYSV_SERVICES = " \