1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

lookup: always also look into /usr/lib for units

This commit is contained in:
Lennart Poettering 2011-04-04 19:02:32 +02:00
parent 3d57c6ab80
commit ef3102bf43

View File

@ -102,7 +102,11 @@ static char** user_dirs(void) {
if ((e = getenv("XDG_DATA_DIRS")))
data_dirs = strv_split(e, ":");
else
data_dirs = strv_new("/usr/local/share", "/usr/share", NULL);
data_dirs = strv_new("/usr/local/share",
"/usr/local/lib",
"/usr/share",
"/usr/lib",
NULL);
if (!data_dirs)
goto fail;
@ -187,9 +191,11 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
SYSTEM_CONFIG_UNIT_PATH,
"/etc/systemd/system",
"/usr/local/share/systemd/system",
"/usr/local/lib/systemd/system",
"/usr/share/systemd/system",
"/lib/systemd/system",
"/usr/lib/systemd/system",
SYSTEM_DATA_UNIT_PATH,
"/lib/systemd/system",
NULL)))
return -ENOMEM;
}