diff options
| -rw-r--r-- | meta-systemd/classes/systemd.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-systemd/classes/systemd.bbclass b/meta-systemd/classes/systemd.bbclass index f2a0363361..4069367426 100644 --- a/meta-systemd/classes/systemd.bbclass +++ b/meta-systemd/classes/systemd.bbclass | |||
| @@ -33,6 +33,14 @@ def get_package_var(d, var, pkg): | |||
| 33 | return val | 33 | return val |
| 34 | 34 | ||
| 35 | def systemd_after_parse(d): | 35 | def systemd_after_parse(d): |
| 36 | features = d.getVar("DISTRO_FEATURES", True).split() | ||
| 37 | # If the distro features have systemd but not sysvinit, inhibit update-rcd | ||
| 38 | # from doing any work so that pure-systemd images don't have redundant init | ||
| 39 | # files. | ||
| 40 | if "systemd" in features: | ||
| 41 | if "sysvinit" not in features: | ||
| 42 | d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") | ||
| 43 | |||
| 36 | def systemd_check_vars(): | 44 | def systemd_check_vars(): |
| 37 | if d.getVar('BB_WORKERCONTEXT', True) is not None: | 45 | if d.getVar('BB_WORKERCONTEXT', True) is not None: |
| 38 | return | 46 | return |
