preset: don't look for preset files in /lib unless /usr is split off

This commit is contained in:
Lennart Poettering 2012-06-21 23:22:53 +02:00
parent 8a422bb295
commit b4bdfefac3

View file

@ -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",