Skip to contentSkip to conversation

systemd: Extend searchpath to include user based unit files

PATCH New Richard Purdie 1 participant 1 message Feb 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: Extend searchpath to include user based unit files

Currently we only handle system unit files. Pulseaudio adds user components so add these to the search paths.

meta/classes/systemd.bbclass +1 -0
index c34884b..bb77c24 100644
@@ -138,6 +138,7 @@ python systemd_populate_packages() {
         searchpaths = [oe.path.join(d.getVar("sysconfdir", True), "systemd", "system"),]
         searchpaths.append(oe.path.join(d.getVar("nonarch_base_libdir", True), "systemd", "system"))
         searchpaths.append(oe.path.join(d.getVar("exec_prefix", True), d.getVar("nonarch_base_libdir", True), "systemd", "system"))
+        searchpaths.append(oe.path.join(d.getVar("exec_prefix", True), d.getVar("nonarch_base_libdir", True), "systemd", "user"))
         systemd_packages = d.getVar('SYSTEMD_PACKAGES', True)
         has_exactly_one_service = len(systemd_packages.split()) == 1
         if has_exactly_one_service: