mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-03 20:57:38 +00:00
Move sysusers.d/sysctl.d/binfmt.d/modules-load.d back to /usr
In Debian, late mounting of /usr is no longer supported, so it is safe to install those files in /usr. We want those facilities in /usr, not /, as this will make an eventual switch to a merged-usr setup easier. Closes: #971282
This commit is contained in:
parent
86edce2b4b
commit
4ef284cd7a
68
debian/patches/debian/Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-back-to-.patch
vendored
Normal file
68
debian/patches/debian/Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-back-to-.patch
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
From: Michael Biebl <biebl@debian.org>
|
||||
Date: Thu, 15 Oct 2020 23:11:01 +0200
|
||||
Subject: Move sysusers.d/sysctl.d/binfmt.d/modules-load.d back to /usr
|
||||
|
||||
In Debian, late mounting of /usr is no longer supported, so it is safe
|
||||
to install those files in /usr.
|
||||
We want those facilities in /usr, not /, as this will make an eventual
|
||||
switch to a merged-usr setup easier.
|
||||
|
||||
Closes: #971282
|
||||
---
|
||||
src/core/systemd.pc.in | 8 ++++----
|
||||
src/libsystemd/sd-path/sd-path.c | 8 ++++----
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/core/systemd.pc.in b/src/core/systemd.pc.in
|
||||
index 8424837..410a126 100644
|
||||
--- a/src/core/systemd.pc.in
|
||||
+++ b/src/core/systemd.pc.in
|
||||
@@ -65,16 +65,16 @@ systemdshutdowndir=${systemd_shutdown_dir}
|
||||
tmpfiles_dir=${prefix}/lib/tmpfiles.d
|
||||
tmpfilesdir=${tmpfiles_dir}
|
||||
|
||||
-sysusers_dir=${rootprefix}/lib/sysusers.d
|
||||
+sysusers_dir=${prefix}/lib/sysusers.d
|
||||
sysusersdir=${sysusers_dir}
|
||||
|
||||
-sysctl_dir=${rootprefix}/lib/sysctl.d
|
||||
+sysctl_dir=${prefix}/lib/sysctl.d
|
||||
sysctldir=${sysctl_dir}
|
||||
|
||||
-binfmt_dir=${rootprefix}/lib/binfmt.d
|
||||
+binfmt_dir=${prefix}/lib/binfmt.d
|
||||
binfmtdir=${binfmt_dir}
|
||||
|
||||
-modules_load_dir=${rootprefix}/lib/modules-load.d
|
||||
+modules_load_dir=${prefix}/lib/modules-load.d
|
||||
modulesloaddir=${modules_load_dir}
|
||||
|
||||
catalog_dir=${prefix}/lib/systemd/catalog
|
||||
diff --git a/src/libsystemd/sd-path/sd-path.c b/src/libsystemd/sd-path/sd-path.c
|
||||
index 3f6e70d..48e865e 100644
|
||||
--- a/src/libsystemd/sd-path/sd-path.c
|
||||
+++ b/src/libsystemd/sd-path/sd-path.c
|
||||
@@ -371,19 +371,19 @@ static int get_path(uint64_t type, char **buffer, const char **ret) {
|
||||
return 0;
|
||||
|
||||
case SD_PATH_SYSUSERS:
|
||||
- *ret = ROOTPREFIX_NOSLASH "/lib/sysusers.d";
|
||||
+ *ret = "/usr/lib/sysusers.d";
|
||||
return 0;
|
||||
|
||||
case SD_PATH_SYSCTL:
|
||||
- *ret = ROOTPREFIX_NOSLASH "/lib/sysctl.d";
|
||||
+ *ret = "/usr/lib/sysctl.d";
|
||||
return 0;
|
||||
|
||||
case SD_PATH_BINFMT:
|
||||
- *ret = ROOTPREFIX_NOSLASH "/lib/binfmt.d";
|
||||
+ *ret = "/usr/lib/binfmt.d";
|
||||
return 0;
|
||||
|
||||
case SD_PATH_MODULES_LOAD:
|
||||
- *ret = ROOTPREFIX_NOSLASH "/lib/modules-load.d";
|
||||
+ *ret = "/usr/lib/modules-load.d";
|
||||
return 0;
|
||||
|
||||
case SD_PATH_CATALOG:
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -23,3 +23,4 @@ debian/blacklist-upstream-test-25.patch
|
||||
debian/blacklist-upstream-test-24-ppc64el.patch
|
||||
debian/udev-drop-SystemCallArchitectures-native-from-systemd-ude.patch
|
||||
debian/Keep-journal-files-compatible-with-older-versions.patch
|
||||
debian/Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-back-to-.patch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user