[oe-commits] Martin Jansa : systemd: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
git at git.openembedded.org
git at git.openembedded.org
Thu Apr 4 22:54:41 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: b1dca3a693bb439181a155c5248a2c6a900f729d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b1dca3a693bb439181a155c5248a2c6a900f729d
Author: Martin Jansa <martin.jansa at gmail.com>
Date: Thu Apr 4 18:42:12 2013 +0200
systemd: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
* fixes udev configure in run-postinsts failing with:
update-rc.d: /etc/init.d/systemd-udev: file does not exist
because systemd-udev is installed only with sysvinit in features
but update-rc.d was always called from PN postinst
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/systemd/systemd_199.bb | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/systemd/systemd_199.bb b/meta/recipes-core/systemd/systemd_199.bb
index ba1d133..e574548 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -239,6 +239,12 @@ INITSCRIPT_PACKAGES = "udev"
INITSCRIPT_NAME_udev = "systemd-udevd"
INITSCRIPT_PARAMS_udev = "start 03 S ."
+python __anonymous() {
+ features = d.getVar("DISTRO_FEATURES", True).split()
+ if "sysvinit" not in features:
+ d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
+}
+
# TODO:
# u-a for runlevel and telinit
More information about the Openembedded-commits
mailing list