systemd: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 4 Apr 2013 16:42:12 +0000 (18:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Apr 2013 22:57:20 +0000 (23:57 +0100)
* 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

(From OE-Core rev: b1dca3a693bb439181a155c5248a2c6a900f729d)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_199.bb

index ba1d133..e574548 100644 (file)
@@ -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