summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-21 23:22:53 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-21 23:22:53 +0200
commitb4bdfefac3fcf633aa0700a981d854cc49a9725b (patch)
tree84a82e59d4fe29e1973068737efea231455b17ef
parent8a422bb295516bb85fe1e8dbd7ff03a9e9e1a520 (diff)
preset: don't look for preset files in /lib unless /usr is split off
-rw-r--r--src/shared/install.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index 40b137e437..718ec52769 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -1686,7 +1686,9 @@ int unit_file_query_preset(UnitFileScope scope, const char *name) {
"/etc/systemd/system.preset",
"/usr/local/lib/systemd/system.preset",
"/usr/lib/systemd/system.preset",
+#ifdef HAVE_SPLIT_USR
"/lib/systemd/system.preset",
+#endif
NULL);
else if (scope == UNIT_FILE_GLOBAL)
r = conf_files_list(&files, ".preset",