diff options
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index 0997702ee9..9f1e28a59d 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass | |||
@@ -80,12 +80,10 @@ python populate_packages_updatercd () { | |||
80 | postrm += d.getVar('updatercd_postrm', True) | 80 | postrm += d.getVar('updatercd_postrm', True) |
81 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 81 | d.setVar('pkg_postrm_%s' % pkg, postrm) |
82 | 82 | ||
83 | # Run if the sysvinit feature is present, or if the systemd feature is present | 83 | # Check that this class isn't being inhibited (generally, by |
84 | # but the systemd class hasn't been inherited. We want to run in the latter case | 84 | # systemd.bbclass) before doing any work. |
85 | # as systemd has sysvinit compatibility, but we don't want to always so that | ||
86 | # pure systemd images don't have redundent sysvinit files. | ||
87 | if "sysvinit" in d.getVar("DISTRO_FEATURES").split() or \ | 85 | if "sysvinit" in d.getVar("DISTRO_FEATURES").split() or \ |
88 | ("systemd" in d.getVar("DISTRO_FEATURES").split() and not d.getVar("SYSTEMD_BBCLASS_ENABLED", True)): | 86 | not d.getVar("INHIBIT_UPDATERCD_BBCLASS", True): |
89 | pkgs = d.getVar('INITSCRIPT_PACKAGES', True) | 87 | pkgs = d.getVar('INITSCRIPT_PACKAGES', True) |
90 | if pkgs == None: | 88 | if pkgs == None: |
91 | pkgs = d.getVar('UPDATERCPN', True) | 89 | pkgs = d.getVar('UPDATERCPN', True) |