summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-02-14 00:24:49 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-14 00:24:49 +0100
commit283b73b3bb98ec8aab3ccc452e211f43a2dcf0df (patch)
tree4b55a95fa1b289014b8518b0137fdaea05a0d6f9 /src
parent72e764a6911936343aa56f3697bb3817224cdaba (diff)
path-lookup: search for unit files in /lib/systemd/system only on split /usr systems
Diffstat (limited to 'src')
-rw-r--r--src/path-lookup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path-lookup.c b/src/path-lookup.c
index 5f5ad8c9f5..93fdf63699 100644
--- a/src/path-lookup.c
+++ b/src/path-lookup.c
@@ -230,7 +230,9 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as, bool personal
"/usr/local/lib/systemd/system",
"/usr/lib/systemd/system",
SYSTEM_DATA_UNIT_PATH,
+#ifdef HAVE_SPLIT_USR
"/lib/systemd/system",
+#endif
NULL)))
return -ENOMEM;
}