summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Kowalski <arturkow2000@gmail.com>2025-01-20 13:46:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-21 12:07:56 +0000
commit7ed8900926baf35e2da1d3170e435d2c6c612b63 (patch)
treefede401b1d64db7afa4829fd41ca849562495aff
parent1bb9a3caf390b3bd9977639d8d043350cd1a6d6e (diff)
downloadpoky-7ed8900926baf35e2da1d3170e435d2c6c612b63.tar.gz
systemd.bbclass: add ${sysconfdir}/systemd/user to search path
We already search for system units ${sysconfdir}/systemd/system but we don't search for user units in corresponding directory under ${sysconfdir}. Keep the behaviour consistent so that both unit types are searched in ${systemd_{system,user}_unitdir} and ${sysconfdir}/systemd/{system,user}. (From OE-Core rev: df1cdf1bf4cd7d9f17c6a02538057ccfc2efba64) Signed-off-by: Artur Kowalski <arturkow2000@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/systemd.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes-recipe/systemd.bbclass b/meta/classes-recipe/systemd.bbclass
index 4b4470b7b3..c167689d2a 100644
--- a/meta/classes-recipe/systemd.bbclass
+++ b/meta/classes-recipe/systemd.bbclass
@@ -147,7 +147,10 @@ python systemd_populate_packages() {
147 147
148 # Check service-files and call systemd_add_files_and_parse for each entry 148 # Check service-files and call systemd_add_files_and_parse for each entry
149 def systemd_check_services(): 149 def systemd_check_services():
150 searchpaths = [oe.path.join(d.getVar("sysconfdir"), "systemd", "system"),] 150 searchpaths = [
151 oe.path.join(d.getVar("sysconfdir"), "systemd", "system"),
152 oe.path.join(d.getVar("sysconfdir"), "systemd", "user"),
153 ]
151 searchpaths.append(d.getVar("systemd_system_unitdir")) 154 searchpaths.append(d.getVar("systemd_system_unitdir"))
152 searchpaths.append(d.getVar("systemd_user_unitdir")) 155 searchpaths.append(d.getVar("systemd_user_unitdir"))
153 systemd_packages = d.getVar('SYSTEMD_PACKAGES') 156 systemd_packages = d.getVar('SYSTEMD_PACKAGES')