]> err.no Git - systemd/commitdiff
path-lookup: search for unit files in /lib/systemd/system only on split /usr systems
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Feb 2012 23:24:49 +0000 (00:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Feb 2012 23:24:49 +0000 (00:24 +0100)
src/path-lookup.c

index 5f5ad8c9f59c3b2079f0f793e241797650c369ea..93fdf6369915562db56264aae038a8452304459d 100644 (file)
@@ -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;
         }