diff options
Diffstat (limited to 'meta/classes/systemd.bbclass')
| -rw-r--r-- | meta/classes/systemd.bbclass | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index cfe1eb56d5..46e72c7a4a 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
| @@ -136,8 +136,7 @@ python systemd_populate_packages() { | |||
| 136 | # Check service-files and call systemd_add_files_and_parse for each entry | 136 | # Check service-files and call systemd_add_files_and_parse for each entry |
| 137 | def systemd_check_services(): | 137 | def systemd_check_services(): |
| 138 | searchpaths = [oe.path.join(d.getVar("sysconfdir", True), "systemd", "system"),] | 138 | searchpaths = [oe.path.join(d.getVar("sysconfdir", True), "systemd", "system"),] |
| 139 | searchpaths.append(oe.path.join(d.getVar("nonarch_base_libdir", True), "systemd", "system")) | 139 | searchpaths.append(d.getVar("systemd_system_unitdir", True)) |
| 140 | searchpaths.append(oe.path.join(d.getVar("exec_prefix", True), d.getVar("nonarch_base_libdir", True), "systemd", "system")) | ||
| 141 | systemd_packages = d.getVar('SYSTEMD_PACKAGES', True) | 140 | systemd_packages = d.getVar('SYSTEMD_PACKAGES', True) |
| 142 | 141 | ||
| 143 | keys = 'Also' | 142 | keys = 'Also' |
| @@ -185,10 +184,10 @@ python rm_sysvinit_initddir (){ | |||
| 185 | if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and \ | 184 | if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and \ |
| 186 | not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) and \ | 185 | not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) and \ |
| 187 | os.path.exists(sysv_initddir): | 186 | os.path.exists(sysv_initddir): |
| 188 | systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True), "system") | 187 | systemd_system_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_system_unitdir', True)) |
| 189 | 188 | ||
| 190 | # If systemd_unitdir contains anything, delete sysv_initddir | 189 | # If systemd_system_unitdir contains anything, delete sysv_initddir |
| 191 | if (os.path.exists(systemd_unitdir) and os.listdir(systemd_unitdir)): | 190 | if (os.path.exists(systemd_system_unitdir) and os.listdir(systemd_system_unitdir)): |
| 192 | shutil.rmtree(sysv_initddir) | 191 | shutil.rmtree(sysv_initddir) |
| 193 | } | 192 | } |
| 194 | do_install[postfuncs] += "rm_sysvinit_initddir " | 193 | do_install[postfuncs] += "rm_sysvinit_initddir " |
