mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
0e904db7da
commit
5baac2d7b3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user