0001-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. From 258af8106cbed6fa53f7bee042bf903e58b57a41 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Tue, 29 Sep 2020 18:01:41 -0700
  4. Subject: [PATCH] Move sysusers.d/sysctl.d/binfmt.d/modules-load.d to /usr
  5. These directories are moved to /lib since systemd v246, commit
  6. 4a56315a990b ("path: use ROOTPREFIX properly"), but in oe-core/yocto,
  7. the old /usr/lib is still being used.
  8. Upstream-Status: Inappropriate (OE-specific)
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
  11. ---
  12. src/core/systemd.pc.in | 8 ++++----
  13. src/libsystemd/sd-path/sd-path.c | 8 ++++----
  14. 2 files changed, 8 insertions(+), 8 deletions(-)
  15. diff --git a/src/core/systemd.pc.in b/src/core/systemd.pc.in
  16. index 693433b34b..8368a3ff02 100644
  17. --- a/src/core/systemd.pc.in
  18. +++ b/src/core/systemd.pc.in
  19. @@ -67,16 +67,16 @@ tmpfilesdir=${tmpfiles_dir}
  20. user_tmpfiles_dir=${prefix}/share/user-tmpfiles.d
  21. -sysusers_dir=${rootprefix}/lib/sysusers.d
  22. +sysusers_dir=${prefix}/lib/sysusers.d
  23. sysusersdir=${sysusers_dir}
  24. -sysctl_dir=${rootprefix}/lib/sysctl.d
  25. +sysctl_dir=${prefix}/lib/sysctl.d
  26. sysctldir=${sysctl_dir}
  27. -binfmt_dir=${rootprefix}/lib/binfmt.d
  28. +binfmt_dir=${prefix}/lib/binfmt.d
  29. binfmtdir=${binfmt_dir}
  30. -modules_load_dir=${rootprefix}/lib/modules-load.d
  31. +modules_load_dir=${prefix}/lib/modules-load.d
  32. modulesloaddir=${modules_load_dir}
  33. catalog_dir=${prefix}/lib/systemd/catalog
  34. diff --git a/src/libsystemd/sd-path/sd-path.c b/src/libsystemd/sd-path/sd-path.c
  35. index ac33e349c0..f0615ffb22 100644
  36. --- a/src/libsystemd/sd-path/sd-path.c
  37. +++ b/src/libsystemd/sd-path/sd-path.c
  38. @@ -362,19 +362,19 @@ static int get_path(uint64_t type, char **buffer, const char **ret) {
  39. return 0;
  40. case SD_PATH_SYSUSERS:
  41. - *ret = ROOTPREFIX_NOSLASH "/lib/sysusers.d";
  42. + *ret = "/usr/lib/sysusers.d";
  43. return 0;
  44. case SD_PATH_SYSCTL:
  45. - *ret = ROOTPREFIX_NOSLASH "/lib/sysctl.d";
  46. + *ret = "/usr/lib/sysctl.d";
  47. return 0;
  48. case SD_PATH_BINFMT:
  49. - *ret = ROOTPREFIX_NOSLASH "/lib/binfmt.d";
  50. + *ret = "/usr/lib/binfmt.d";
  51. return 0;
  52. case SD_PATH_MODULES_LOAD:
  53. - *ret = ROOTPREFIX_NOSLASH "/lib/modules-load.d";
  54. + *ret = "/usr/lib/modules-load.d";
  55. return 0;
  56. case SD_PATH_CATALOG: