diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2013-04-04 18:42:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-04 23:53:50 +0100 |
commit | b1dca3a693bb439181a155c5248a2c6a900f729d (patch) | |
tree | 8798914a0e3f7d8bb4874d95b436e378bd6d2376 /meta | |
parent | 3115187e468398a8c1edaf3e5369a2d10fb112f4 (diff) | |
download | openembedded-core-b1dca3a693bb439181a155c5248a2c6a900f729d.tar.gz openembedded-core-b1dca3a693bb439181a155c5248a2c6a900f729d.tar.bz2 openembedded-core-b1dca3a693bb439181a155c5248a2c6a900f729d.zip |
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@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | 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 ba1d13390d..e5745483dc 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 |