mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
update-rc.d/systemd: change communication variable name
Rename SYSTEMD_BBCLASS_ENABLED to INHIBIT_UPDATERCD_BBCLASS to reflect the action, for clarity. (From OE-Core rev: cf43320c343437659aee94acd005bf7712f273cd) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a89520ffe1
commit
d82e303921
@@ -10,11 +10,14 @@ SYSTEMD_AUTO_ENABLE ??= "enable"
|
||||
# even if the systemd DISTRO_FEATURE isn't enabled. As such don't make any
|
||||
# changes directly but check the DISTRO_FEATURES first.
|
||||
python __anonymous() {
|
||||
if "systemd" in d.getVar("DISTRO_FEATURES", True).split():
|
||||
features = d.getVar("DISTRO_FEATURES", True).split()
|
||||
# If the distro features have systemd but not sysvinit, inhibit update-rcd
|
||||
# from doing any work so that pure-systemd images don't have redundant init
|
||||
# files.
|
||||
if "systemd" in features:
|
||||
d.appendVar("DEPENDS", " systemd-systemctl-native")
|
||||
# Set a variable so that update-rcd.bbclass knows we're active and can
|
||||
# disable itself.
|
||||
d.setVar("SYSTEMD_BBCLASS_ENABLED", "1")
|
||||
if "sysvinit" not in features:
|
||||
d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
|
||||
}
|
||||
|
||||
systemd_postinst() {
|
||||
|
||||
Reference in New Issue
Block a user