Skip to content

Instantly share code, notes, and snippets.

@zavorka
Created September 14, 2017 00:23
Show Gist options
  • Save zavorka/13db477dfedf6cc3bc2addf1ac3c2870 to your computer and use it in GitHub Desktop.
Save zavorka/13db477dfedf6cc3bc2addf1ac3c2870 to your computer and use it in GitHub Desktop.
diff -Nur a/src/shared/path-lookup.c b/src/shared/path-lookup.c
--- a/src/shared/path-lookup.c 2017-09-14 01:58:38.769073700 +0200
+++ b/src/shared/path-lookup.c 2017-09-14 02:00:46.638939469 +0200
@@ -130,10 +130,10 @@
};
const char * const data_unit_paths[] = {
- "/usr/local/lib/systemd/user",
+ "/usr/local/lib64/systemd/user",
"/usr/local/share/systemd/user",
USER_DATA_UNIT_PATH,
- "/usr/lib/systemd/user",
+ "/usr/lib64/systemd/user",
"/usr/share/systemd/user",
NULL
};
@@ -554,11 +554,11 @@
runtime_config,
"/run/systemd/system",
STRV_IFNOTNULL(generator),
- "/usr/local/lib/systemd/system",
+ "/usr/local/lib64/systemd/system",
SYSTEM_DATA_UNIT_PATH,
- "/usr/lib/systemd/system",
+ "/usr/lib64/systemd/system",
#ifdef HAVE_SPLIT_USR
- "/lib/systemd/system",
+ "/lib64/systemd/system",
#endif
STRV_IFNOTNULL(generator_late),
NULL);
@@ -579,10 +579,10 @@
runtime_config,
"/run/systemd/user",
STRV_IFNOTNULL(generator),
- "/usr/local/lib/systemd/user",
+ "/usr/local/lib64/systemd/user",
"/usr/local/share/systemd/user",
USER_DATA_UNIT_PATH,
- "/usr/lib/systemd/user",
+ "/usr/lib64/systemd/user",
"/usr/share/systemd/user",
STRV_IFNOTNULL(generator_late),
NULL);
@@ -820,9 +820,9 @@
case UNIT_FILE_SYSTEM:
return strv_new("/run/systemd/system-generators",
"/etc/systemd/system-generators",
- "/usr/local/lib/systemd/system-generators",
- "/usr/lib/systemd/system-generators",
- "/lib/systemd/system-generators",
+ "/usr/local/lib64/systemd/system-generators",
+ "/usr/lib64/systemd/system-generators",
+ "/lib64/systemd/system-generators",
SYSTEM_GENERATOR_PATH,
NULL);
@@ -830,7 +830,7 @@
case UNIT_FILE_USER:
return strv_new("/run/systemd/user-generators",
"/etc/systemd/user-generators",
- "/usr/local/lib/systemd/user-generators",
+ "/usr/local/lib64/systemd/user-generators",
USER_GENERATOR_PATH,
NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment