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:57:20 +0100 |
commit | 5baac2d7b34ec5bd3b74845fe05511c8aac51a4f (patch) | |
tree | a7de6ce6457a09b954e07fee2b21639293386b8f /meta | |
parent | 0e904db7da34295220841c1e96b8ddc24dfa97ee (diff) | |
download | poky-5baac2d7b34ec5bd3b74845fe05511c8aac51a4f.tar.gz |
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
(From OE-Core rev: b1dca3a693bb439181a155c5248a2c6a900f729d)
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" | |||
239 | INITSCRIPT_NAME_udev = "systemd-udevd" | 239 | INITSCRIPT_NAME_udev = "systemd-udevd" |
240 | INITSCRIPT_PARAMS_udev = "start 03 S ." | 240 | INITSCRIPT_PARAMS_udev = "start 03 S ." |
241 | 241 | ||
242 | python __anonymous() { | ||
243 | features = d.getVar("DISTRO_FEATURES", True).split() | ||
244 | if "sysvinit" not in features: | ||
245 | d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") | ||
246 | } | ||
247 | |||
242 | # TODO: | 248 | # TODO: |
243 | # u-a for runlevel and telinit | 249 | # u-a for runlevel and telinit |
244 | 250 | ||