[oe-commits] Richard Purdie : systemd: Extend searchpath to include user based unit files

git at git.openembedded.org git at git.openembedded.org
Tue Feb 17 22:38:06 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 873303e579e6a5124e24e52b49c228fca18959a3
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=873303e579e6a5124e24e52b49c228fca18959a3

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Feb 17 22:35:29 2015 +0000

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.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/systemd.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index c34884b..bb77c24 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -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:



More information about the Openembedded-commits mailing list