systemd: include /etc/systemd/system/ and /lib/systemd/system/ in search path unconditionally
This commit is contained in:
parent
0d624a785a
commit
c0115b1f4a
|
@ -181,10 +181,12 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
} else
|
} else
|
||||||
if (!(p->unit_path = strv_new(
|
if (!(p->unit_path = strv_new(
|
||||||
SYSTEM_CONFIG_UNIT_PATH, /* /etc/systemd/system/ */
|
SYSTEM_CONFIG_UNIT_PATH,
|
||||||
|
"/etc/systemd/system",
|
||||||
"/usr/local/share/systemd/system",
|
"/usr/local/share/systemd/system",
|
||||||
"/usr/share/systemd/system",
|
"/usr/share/systemd/system",
|
||||||
SYSTEM_DATA_UNIT_PATH, /* /lib/systemd/system/ */
|
"/lib/systemd/system",
|
||||||
|
SYSTEM_DATA_UNIT_PATH,
|
||||||
NULL)))
|
NULL)))
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue