Merge pull request #226192 from flokli/systemd-reintroduce-config-method-disable

systemd: reintroduce "hostnamed, localed, timedated: disable methods that change system settings" patch

authored by Florian Klink and committed by GitHub 503149ba 2280dc4e

+295 -71
+3 -3
pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
··· 10 10 1 file changed, 2 insertions(+) 11 11 12 12 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 13 - index 36d336dfc8..d62c5173ca 100644 13 + index a697ea5cb9..65d9e7e398 100644 14 14 --- a/src/nspawn/nspawn.c 15 15 +++ b/src/nspawn/nspawn.c 16 - @@ -5634,6 +5634,7 @@ static int run(int argc, char *argv[]) { 16 + @@ -5635,6 +5635,7 @@ static int run(int argc, char *argv[]) { 17 17 goto finish; 18 18 } 19 19 } else { ··· 21 21 _cleanup_free_ char *p = NULL; 22 22 23 23 if (arg_pivot_root_new) 24 - @@ -5648,6 +5649,7 @@ static int run(int argc, char *argv[]) { 24 + @@ -5649,6 +5650,7 @@ static int run(int argc, char *argv[]) { 25 25 "Directory %s doesn't look like it has an OS tree (/usr/ directory is missing). Refusing.", arg_directory); 26 26 goto finish; 27 27 }
-33
pkgs/os-specific/linux/systemd/0004-Look-for-fsck-in-the-right-place.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 - Date: Thu, 1 May 2014 14:10:10 +0200 4 - Subject: [PATCH] Look for fsck in the right place 5 - 6 - --- 7 - src/fsck/fsck.c | 6 +++++- 8 - 1 file changed, 5 insertions(+), 1 deletion(-) 9 - 10 - diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c 11 - index e25c5d5efa..26f4e5669e 100644 12 - --- a/src/fsck/fsck.c 13 - +++ b/src/fsck/fsck.c 14 - @@ -351,6 +351,7 @@ static int run(int argc, char *argv[]) { 15 - if (r == 0) { 16 - char dash_c[STRLEN("-C") + DECIMAL_STR_MAX(int) + 1]; 17 - int progress_socket = -1; 18 - + _cleanup_free_ char *fsck_name = NULL; 19 - const char *cmdline[9]; 20 - int i = 0; 21 - 22 - @@ -371,7 +372,10 @@ static int run(int argc, char *argv[]) { 23 - } else 24 - dash_c[0] = 0; 25 - 26 - - cmdline[i++] = "/sbin/fsck"; 27 - + r = find_executable("fsck", &fsck_name); 28 - + if (r < 0) 29 - + return r; 30 - + cmdline[i++] = fsck_name; 31 - cmdline[i++] = arg_repair; 32 - cmdline[i++] = "-T"; 33 -
+152
pkgs/os-specific/linux/systemd/0004-fsck-look-for-fsck-binary-not-just-in-sbin.patch
··· 1 + From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 + From: Florian Klink <flokli@flokli.de> 3 + Date: Thu, 13 Apr 2023 22:54:54 +0200 4 + Subject: [PATCH] fsck: look for fsck binary not just in /sbin 5 + 6 + This removes remaining hardcoded occurences of `/sbin/fsck`, and instead 7 + uses `find_executable` to find `fsck`. 8 + 9 + We also use `fsck_exists_for_fstype` to check for the `fsck.*` 10 + executable, which also checks in `$PATH`, so it's fair to assume fsck 11 + itself is also available. 12 + --- 13 + man/systemd-fsck@.service.xml | 8 ++++---- 14 + src/fsck/fsck.c | 9 ++++++++- 15 + src/home/homework-luks.c | 11 ++++++++++- 16 + src/shared/dissect-image.c | 13 +++++++++++-- 17 + 4 files changed, 33 insertions(+), 8 deletions(-) 18 + 19 + diff --git a/man/systemd-fsck@.service.xml b/man/systemd-fsck@.service.xml 20 + index e928aebdb3..403286829e 100644 21 + --- a/man/systemd-fsck@.service.xml 22 + +++ b/man/systemd-fsck@.service.xml 23 + @@ -51,17 +51,17 @@ 24 + <para><filename>systemd-fsck</filename> does not know any details 25 + about specific filesystems, and simply executes file system 26 + checkers specific to each filesystem type 27 + - (<filename>/sbin/fsck.<replaceable>type</replaceable></filename>). These checkers will decide if 28 + + (<filename>fsck.<replaceable>type</replaceable></filename>). These checkers will decide if 29 + the filesystem should actually be checked based on the time since 30 + last check, number of mounts, unclean unmount, etc.</para> 31 + 32 + <para><filename>systemd-fsck-root.service</filename> and <filename>systemd-fsck-usr.service</filename> 33 + - will activate <filename>reboot.target</filename> if <filename>/sbin/fsck</filename> returns the "System 34 + - should reboot" condition, or <filename>emergency.target</filename> if <filename>/sbin/fsck</filename> 35 + + will activate <filename>reboot.target</filename> if <filename>fsck</filename> returns the "System 36 + + should reboot" condition, or <filename>emergency.target</filename> if <filename>fsck</filename> 37 + returns the "Filesystem errors left uncorrected" condition.</para> 38 + 39 + <para><filename>systemd-fsck@.service</filename> will fail if 40 + - <filename>/sbin/fsck</filename> returns with either "System should reboot" 41 + + <filename>fsck</filename> returns with either "System should reboot" 42 + or "Filesystem errors left uncorrected" conditions. For filesystems 43 + listed in <filename>/etc/fstab</filename> without <literal>nofail</literal> 44 + or <literal>noauto</literal> options, <literal>local-fs.target</literal> 45 + diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c 46 + index e25c5d5efa..0e0e73c9ac 100644 47 + --- a/src/fsck/fsck.c 48 + +++ b/src/fsck/fsck.c 49 + @@ -351,6 +351,7 @@ static int run(int argc, char *argv[]) { 50 + if (r == 0) { 51 + char dash_c[STRLEN("-C") + DECIMAL_STR_MAX(int) + 1]; 52 + int progress_socket = -1; 53 + + _cleanup_free_ char *fsck_path = NULL; 54 + const char *cmdline[9]; 55 + int i = 0; 56 + 57 + @@ -371,7 +372,13 @@ static int run(int argc, char *argv[]) { 58 + } else 59 + dash_c[0] = 0; 60 + 61 + - cmdline[i++] = "/sbin/fsck"; 62 + + r = find_executable("fsck", &fsck_path); 63 + + if (r < 0) { 64 + + log_error_errno(r, "Cannot find fsck binary: %m"); 65 + + _exit(FSCK_OPERATIONAL_ERROR); 66 + + } 67 + + 68 + + cmdline[i++] = fsck_path; 69 + cmdline[i++] = arg_repair; 70 + cmdline[i++] = "-T"; 71 + 72 + diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c 73 + index 2ea9887853..e267457b8e 100644 74 + --- a/src/home/homework-luks.c 75 + +++ b/src/home/homework-luks.c 76 + @@ -215,6 +215,7 @@ static int block_get_size_by_path(const char *path, uint64_t *ret) { 77 + static int run_fsck(const char *node, const char *fstype) { 78 + int r, exit_status; 79 + pid_t fsck_pid; 80 + + _cleanup_free_ char *fsck_path = NULL; 81 + 82 + assert(node); 83 + assert(fstype); 84 + @@ -227,6 +228,14 @@ static int run_fsck(const char *node, const char *fstype) { 85 + return 0; 86 + } 87 + 88 + + r = find_executable("fsck", &fsck_path); 89 + + /* We proceed anyway if we can't determine whether the fsck 90 + + * binary for some specific fstype exists, 91 + + * but the lack of the main fsck binary should be considered 92 + + * an error. */ 93 + + if (r < 0) 94 + + return log_error_errno(r, "Cannot find fsck binary: %m"); 95 + + 96 + r = safe_fork("(fsck)", 97 + FORK_RESET_SIGNALS|FORK_RLIMIT_NOFILE_SAFE|FORK_DEATHSIG|FORK_LOG|FORK_STDOUT_TO_STDERR|FORK_CLOSE_ALL_FDS, 98 + &fsck_pid); 99 + @@ -234,7 +243,7 @@ static int run_fsck(const char *node, const char *fstype) { 100 + return r; 101 + if (r == 0) { 102 + /* Child */ 103 + - execl("/sbin/fsck", "/sbin/fsck", "-aTl", node, NULL); 104 + + execl(fsck_path, fsck_path, "-aTl", node, NULL); 105 + log_open(); 106 + log_error_errno(errno, "Failed to execute fsck: %m"); 107 + _exit(FSCK_OPERATIONAL_ERROR); 108 + diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c 109 + index 4749bdd230..2b6e1418dd 100644 110 + --- a/src/shared/dissect-image.c 111 + +++ b/src/shared/dissect-image.c 112 + @@ -1423,6 +1423,7 @@ static int is_loop_device(const char *path) { 113 + static int run_fsck(int node_fd, const char *fstype) { 114 + int r, exit_status; 115 + pid_t pid; 116 + + _cleanup_free_ char *fsck_path = NULL; 117 + 118 + assert(node_fd >= 0); 119 + assert(fstype); 120 + @@ -1437,6 +1438,14 @@ static int run_fsck(int node_fd, const char *fstype) { 121 + return 0; 122 + } 123 + 124 + + r = find_executable("fsck", &fsck_path); 125 + + /* We proceed anyway if we can't determine whether the fsck 126 + + * binary for some specific fstype exists, 127 + + * but the lack of the main fsck binary should be considered 128 + + * an error. */ 129 + + if (r < 0) 130 + + return log_error_errno(r, "Cannot find fsck binary: %m"); 131 + + 132 + r = safe_fork_full( 133 + "(fsck)", 134 + &node_fd, 1, /* Leave the node fd open */ 135 + @@ -1446,7 +1455,7 @@ static int run_fsck(int node_fd, const char *fstype) { 136 + return log_debug_errno(r, "Failed to fork off fsck: %m"); 137 + if (r == 0) { 138 + /* Child */ 139 + - execl("/sbin/fsck", "/sbin/fsck", "-aT", FORMAT_PROC_FD_PATH(node_fd), NULL); 140 + + execl(fsck_path, fsck_path, "-aT", FORMAT_PROC_FD_PATH(node_fd), NULL); 141 + log_open(); 142 + log_debug_errno(errno, "Failed to execl() fsck: %m"); 143 + _exit(FSCK_OPERATIONAL_ERROR); 144 + @@ -1454,7 +1463,7 @@ static int run_fsck(int node_fd, const char *fstype) { 145 + 146 + exit_status = wait_for_terminate_and_check("fsck", pid, 0); 147 + if (exit_status < 0) 148 + - return log_debug_errno(exit_status, "Failed to fork off /sbin/fsck: %m"); 149 + + return log_debug_errno(exit_status, "Failed to fork off %s: %m", fsck_path); 150 + 151 + if ((exit_status & ~FSCK_ERROR_CORRECTED) != FSCK_SUCCESS) { 152 + log_debug("fsck failed with exit status %i.", exit_status);
+1 -1
pkgs/os-specific/linux/systemd/0006-Get-rid-of-a-useless-message-in-user-sessions.patch
··· 13 13 1 file changed, 2 insertions(+), 1 deletion(-) 14 14 15 15 diff --git a/src/core/manager.c b/src/core/manager.c 16 - index 7b394794b0..50d092042c 100644 16 + index 380a4e30d7..817acb87b8 100644 17 17 --- a/src/core/manager.c 18 18 +++ b/src/core/manager.c 19 19 @@ -1437,7 +1437,8 @@ static unsigned manager_dispatch_stop_when_bound_queue(Manager *m) {
+4 -5
pkgs/os-specific/linux/systemd/0007-Fix-hwdb-paths.patch pkgs/os-specific/linux/systemd/0008-Fix-hwdb-paths.patch
··· 5 5 6 6 Patch by vcunat. 7 7 --- 8 - src/libsystemd/sd-hwdb/hwdb-internal.h | 7 ++----- 9 - 1 file changed, 2 insertions(+), 5 deletions(-) 8 + src/libsystemd/sd-hwdb/hwdb-internal.h | 6 +----- 9 + 1 file changed, 1 insertion(+), 5 deletions(-) 10 10 11 11 diff --git a/src/libsystemd/sd-hwdb/hwdb-internal.h b/src/libsystemd/sd-hwdb/hwdb-internal.h 12 - index 5302679a62..c681f3a984 100644 12 + index 5302679a62..39e59a527f 100644 13 13 --- a/src/libsystemd/sd-hwdb/hwdb-internal.h 14 14 +++ b/src/libsystemd/sd-hwdb/hwdb-internal.h 15 - @@ -83,8 +83,5 @@ struct trie_value_entry2_f { 15 + @@ -83,8 +83,4 @@ struct trie_value_entry2_f { 16 16 } _packed_; 17 17 18 18 #define hwdb_bin_paths \ ··· 22 22 - _CONF_PATHS_SPLIT_USR_NULSTR("systemd/hwdb/hwdb.bin") \ 23 23 - UDEVLIBEXECDIR "/hwdb.bin\0" 24 24 + "/etc/udev/hwdb.bin\0" 25 - +
+105
pkgs/os-specific/linux/systemd/0007-hostnamed-localed-timedated-disable-methods-that-cha.patch
··· 1 + From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 + From: Gabriel Ebner <gebner@gebner.org> 3 + Date: Sun, 6 Dec 2015 14:26:36 +0100 4 + Subject: [PATCH] hostnamed, localed, timedated: disable methods that change 5 + system settings. 6 + 7 + --- 8 + src/hostname/hostnamed.c | 6 ++++++ 9 + src/locale/localed.c | 9 +++++++++ 10 + src/timedate/timedated.c | 10 ++++++++++ 11 + 3 files changed, 25 insertions(+) 12 + 13 + diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c 14 + index 36ab0148b9..7d458d196d 100644 15 + --- a/src/hostname/hostnamed.c 16 + +++ b/src/hostname/hostnamed.c 17 + @@ -1028,6 +1028,9 @@ static int method_set_static_hostname(sd_bus_message *m, void *userdata, sd_bus_ 18 + if (r < 0) 19 + return r; 20 + 21 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 22 + + "Changing system settings via systemd is not supported on NixOS."); 23 + + 24 + name = empty_to_null(name); 25 + 26 + context_read_etc_hostname(c); 27 + @@ -1091,6 +1094,9 @@ static int set_machine_info(Context *c, sd_bus_message *m, int prop, sd_bus_mess 28 + if (r < 0) 29 + return r; 30 + 31 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 32 + + "Changing system settings via systemd is not supported on NixOS."); 33 + + 34 + name = empty_to_null(name); 35 + 36 + context_read_machine_info(c); 37 + diff --git a/src/locale/localed.c b/src/locale/localed.c 38 + index 841e5e3e91..a21e34430b 100644 39 + --- a/src/locale/localed.c 40 + +++ b/src/locale/localed.c 41 + @@ -264,6 +264,9 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er 42 + 43 + use_localegen = locale_gen_check_available(); 44 + 45 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 46 + + "Changing system settings via systemd is not supported on NixOS."); 47 + + 48 + /* If single locale without variable name is provided, then we assume it is LANG=. */ 49 + if (strv_length(l) == 1 && !strchr(l[0], '=')) { 50 + if (!locale_is_valid(l[0])) 51 + @@ -382,6 +385,9 @@ static int method_set_vc_keyboard(sd_bus_message *m, void *userdata, sd_bus_erro 52 + if (r < 0) 53 + return bus_log_parse_error(r); 54 + 55 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 56 + + "Changing system settings via systemd is not supported on NixOS."); 57 + + 58 + vc_context_empty_to_null(&in); 59 + 60 + FOREACH_STRING(name, in.keymap ?: in.toggle, in.keymap ? in.toggle : NULL) { 61 + @@ -607,6 +613,9 @@ static int method_set_x11_keyboard(sd_bus_message *m, void *userdata, sd_bus_err 62 + if (r < 0) 63 + return bus_log_parse_error(r); 64 + 65 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 66 + + "Changing system settings via systemd is not supported on NixOS."); 67 + + 68 + x11_context_empty_to_null(&in); 69 + 70 + if (!x11_context_is_safe(&in)) 71 + diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c 72 + index ad483301ef..31ed86955b 100644 73 + --- a/src/timedate/timedated.c 74 + +++ b/src/timedate/timedated.c 75 + @@ -665,6 +665,10 @@ static int method_set_timezone(sd_bus_message *m, void *userdata, sd_bus_error * 76 + if (r < 0) 77 + return r; 78 + 79 + + if (getenv("NIXOS_STATIC_TIMEZONE")) 80 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 81 + + "Changing timezone via systemd is not supported when it is set in NixOS configuration."); 82 + + 83 + if (!timezone_is_valid(z, LOG_DEBUG)) 84 + return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid or not installed time zone '%s'", z); 85 + 86 + @@ -743,6 +747,9 @@ static int method_set_local_rtc(sd_bus_message *m, void *userdata, sd_bus_error 87 + if (r < 0) 88 + return r; 89 + 90 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 91 + + "Changing system settings via systemd is not supported on NixOS."); 92 + + 93 + if (lrtc == c->local_rtc && !fix_system) 94 + return sd_bus_reply_method_return(m, NULL); 95 + 96 + @@ -923,6 +930,9 @@ static int method_set_ntp(sd_bus_message *m, void *userdata, sd_bus_error *error 97 + if (r < 0) 98 + return r; 99 + 100 + + return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, 101 + + "Changing system settings via systemd is not supported on NixOS."); 102 + + 103 + r = context_update_ntp_status(c, bus, m); 104 + if (r < 0) 105 + return r;
+7 -7
pkgs/os-specific/linux/systemd/0008-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch pkgs/os-specific/linux/systemd/0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch
··· 35 35 <literal>Etc/UTC</literal>. The resulting link should lead to the 36 36 corresponding binary 37 37 diff --git a/src/basic/time-util.c b/src/basic/time-util.c 38 - index b700f364ef..116b1cec63 100644 38 + index 0bea149324..4b16115d43 100644 39 39 --- a/src/basic/time-util.c 40 40 +++ b/src/basic/time-util.c 41 - @@ -1282,7 +1282,7 @@ static int get_timezones_from_zone1970_tab(char ***ret) { 41 + @@ -1283,7 +1283,7 @@ static int get_timezones_from_zone1970_tab(char ***ret) { 42 42 43 43 assert(ret); 44 44 ··· 47 47 if (!f) 48 48 return -errno; 49 49 50 - @@ -1321,7 +1321,7 @@ static int get_timezones_from_tzdata_zi(char ***ret) { 50 + @@ -1322,7 +1322,7 @@ static int get_timezones_from_tzdata_zi(char ***ret) { 51 51 _cleanup_strv_free_ char **zones = NULL; 52 52 int r; 53 53 ··· 56 56 if (!f) 57 57 return -errno; 58 58 59 - @@ -1433,7 +1433,7 @@ int verify_timezone(const char *name, int log_level) { 59 + @@ -1434,7 +1434,7 @@ int verify_timezone(const char *name, int log_level) { 60 60 if (p - name >= PATH_MAX) 61 61 return -ENAMETOOLONG; 62 62 ··· 65 65 66 66 fd = open(t, O_RDONLY|O_CLOEXEC); 67 67 if (fd < 0) 68 - @@ -1491,7 +1491,7 @@ int get_timezone(char **ret) { 68 + @@ -1492,7 +1492,7 @@ int get_timezone(char **ret) { 69 69 if (r < 0) 70 70 return r; /* returns EINVAL if not a symlink */ 71 71 ··· 88 88 (void) mkdir_parents(etc_localtime, 0755); 89 89 r = symlink_atomic(e, etc_localtime); 90 90 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 91 - index d62c5173ca..84beac064b 100644 91 + index 65d9e7e398..dd44d529ca 100644 92 92 --- a/src/nspawn/nspawn.c 93 93 +++ b/src/nspawn/nspawn.c 94 94 @@ -1915,8 +1915,8 @@ int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t uid, gid ··· 103 103 104 104 static bool etc_writable(void) { 105 105 diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c 106 - index ad483301ef..a7f22b1c86 100644 106 + index 31ed86955b..8db8d8c288 100644 107 107 --- a/src/timedate/timedated.c 108 108 +++ b/src/timedate/timedated.c 109 109 @@ -282,7 +282,7 @@ static int context_read_data(Context *c) {
pkgs/os-specific/linux/systemd/0009-localectl-use-etc-X11-xkb-for-list-x11.patch pkgs/os-specific/linux/systemd/0010-localectl-use-etc-X11-xkb-for-list-x11.patch
+2 -2
pkgs/os-specific/linux/systemd/0010-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch pkgs/os-specific/linux/systemd/0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch
··· 8 8 1 file changed, 3 deletions(-) 9 9 10 10 diff --git a/meson.build b/meson.build 11 - index bfc86857d6..84e3e4c1db 100644 11 + index b1f5477836..1a39484855 100644 12 12 --- a/meson.build 13 13 +++ b/meson.build 14 - @@ -4277,9 +4277,6 @@ install_data('LICENSE.GPL2', 14 + @@ -4278,9 +4278,6 @@ install_data('LICENSE.GPL2', 15 15 install_subdir('LICENSES', 16 16 install_dir : docdir) 17 17
+1 -1
pkgs/os-specific/linux/systemd/0011-add-rootprefix-to-lookup-dir-paths.patch pkgs/os-specific/linux/systemd/0012-add-rootprefix-to-lookup-dir-paths.patch
··· 12 12 1 file changed, 4 insertions(+), 2 deletions(-) 13 13 14 14 diff --git a/src/basic/constants.h b/src/basic/constants.h 15 - index 5d68cc6332..a2ccc315e1 100644 15 + index 5d68cc6332..33c06c1f65 100644 16 16 --- a/src/basic/constants.h 17 17 +++ b/src/basic/constants.h 18 18 @@ -73,13 +73,15 @@
pkgs/os-specific/linux/systemd/0012-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch pkgs/os-specific/linux/systemd/0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
+2 -2
pkgs/os-specific/linux/systemd/0013-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch pkgs/os-specific/linux/systemd/0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
··· 9 9 1 file changed, 1 insertion(+) 10 10 11 11 diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c 12 - index 9c51a3367f..75d6b76a87 100644 12 + index 288fa4ae84..07deb19d7c 100644 13 13 --- a/src/sleep/sleep.c 14 14 +++ b/src/sleep/sleep.c 15 - @@ -184,6 +184,7 @@ static int execute( 15 + @@ -186,6 +186,7 @@ static int execute( 16 16 }; 17 17 static const char* const dirs[] = { 18 18 SYSTEM_SLEEP_PATH,
pkgs/os-specific/linux/systemd/0014-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch pkgs/os-specific/linux/systemd/0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch
pkgs/os-specific/linux/systemd/0015-pkg-config-derive-prefix-from-prefix.patch pkgs/os-specific/linux/systemd/0016-pkg-config-derive-prefix-from-prefix.patch
+1 -1
pkgs/os-specific/linux/systemd/0016-inherit-systemd-environment-when-calling-generators.patch pkgs/os-specific/linux/systemd/0017-inherit-systemd-environment-when-calling-generators.patch
··· 16 16 1 file changed, 8 insertions(+) 17 17 18 18 diff --git a/src/core/manager.c b/src/core/manager.c 19 - index 50d092042c..898f9ed2f1 100644 19 + index 817acb87b8..3f31359f8a 100644 20 20 --- a/src/core/manager.c 21 21 +++ b/src/core/manager.c 22 22 @@ -3714,9 +3714,17 @@ static int build_generator_environment(Manager *m, char ***ret) {
+2 -2
pkgs/os-specific/linux/systemd/0017-core-don-t-taint-on-unmerged-usr.patch pkgs/os-specific/linux/systemd/0018-core-don-t-taint-on-unmerged-usr.patch
··· 17 17 1 file changed, 4 deletions(-) 18 18 19 19 diff --git a/src/core/manager.c b/src/core/manager.c 20 - index 898f9ed2f1..5040d5b105 100644 20 + index 3f31359f8a..0c4ec0b4fb 100644 21 21 --- a/src/core/manager.c 22 22 +++ b/src/core/manager.c 23 - @@ -4543,10 +4543,6 @@ char* manager_taint_string(const Manager *m) { 23 + @@ -4556,10 +4556,6 @@ char* manager_taint_string(const Manager *m) { 24 24 if (m->taint_usr) 25 25 stage[n++] = "split-usr"; 26 26
+1 -1
pkgs/os-specific/linux/systemd/0018-tpm2_context_init-fix-driver-name-checking.patch pkgs/os-specific/linux/systemd/0019-tpm2_context_init-fix-driver-name-checking.patch
··· 27 27 1 file changed, 1 insertion(+), 1 deletion(-) 28 28 29 29 diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c 30 - index 259f280e0f..142e70a740 100644 30 + index 4345b95106..424a334df1 100644 31 31 --- a/src/shared/tpm2-util.c 32 32 +++ b/src/shared/tpm2-util.c 33 33 @@ -176,7 +176,7 @@ int tpm2_context_new(const char *device, Tpm2Context **ret_context) {
+14 -13
pkgs/os-specific/linux/systemd/default.nix
··· 169 169 ./0001-Start-device-units-for-uninitialised-encrypted-devic.patch 170 170 ./0002-Don-t-try-to-unmount-nix-or-nix-store.patch 171 171 ./0003-Fix-NixOS-containers.patch 172 - ./0004-Look-for-fsck-in-the-right-place.patch 172 + ./0004-fsck-look-for-fsck-binary-not-just-in-sbin.patch 173 173 ./0005-Add-some-NixOS-specific-unit-directories.patch 174 174 ./0006-Get-rid-of-a-useless-message-in-user-sessions.patch 175 - ./0007-Fix-hwdb-paths.patch 176 - ./0008-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch 177 - ./0009-localectl-use-etc-X11-xkb-for-list-x11.patch 178 - ./0010-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch 179 - ./0011-add-rootprefix-to-lookup-dir-paths.patch 180 - ./0012-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch 181 - ./0013-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch 182 - ./0014-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch 183 - ./0015-pkg-config-derive-prefix-from-prefix.patch 184 - ./0016-inherit-systemd-environment-when-calling-generators.patch 185 - ./0017-core-don-t-taint-on-unmerged-usr.patch 186 - ./0018-tpm2_context_init-fix-driver-name-checking.patch 175 + ./0007-hostnamed-localed-timedated-disable-methods-that-cha.patch 176 + ./0008-Fix-hwdb-paths.patch 177 + ./0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch 178 + ./0010-localectl-use-etc-X11-xkb-for-list-x11.patch 179 + ./0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch 180 + ./0012-add-rootprefix-to-lookup-dir-paths.patch 181 + ./0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch 182 + ./0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch 183 + ./0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch 184 + ./0016-pkg-config-derive-prefix-from-prefix.patch 185 + ./0017-inherit-systemd-environment-when-calling-generators.patch 186 + ./0018-core-don-t-taint-on-unmerged-usr.patch 187 + ./0019-tpm2_context_init-fix-driver-name-checking.patch 187 188 ] ++ lib.optional stdenv.hostPlatform.isMusl ( 188 189 let 189 190 oe-core = fetchzip {