dbus: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
* fixes udev configure in run-postinsts failing with: update-rc.d: /etc/init.d/dbus-1: file does not exist because dbus-udev is installed only with sysvinit in features but update-rc.d was always called from PN postinst (From OE-Core rev: f15192a65e02026308253e6723b990b24780be5b) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5baac2d7b3
commit
cb4bba8fb0
|
@ -24,6 +24,12 @@ inherit useradd autotools pkgconfig gettext update-rc.d
|
|||
INITSCRIPT_NAME = "dbus-1"
|
||||
INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ."
|
||||
|
||||
python __anonymous() {
|
||||
features = d.getVar("DISTRO_FEATURES", True).split()
|
||||
if "sysvinit" not in features:
|
||||
d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
|
||||
}
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
GROUPADD_PARAM_${PN} = "-r netdev"
|
||||
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
|
||||
|
|
Loading…
Reference in New Issue