lol

systemd: 257.7 -> 257.8 (#431789)

authored by philiptaron.tngl.sh and committed by

GitHub 757ae81e cb60966c

+8 -69
+2 -2
pkgs/os-specific/linux/systemd/0017-meson.build-do-not-create-systemdstatedir.patch
··· 8 1 file changed, 1 deletion(-) 9 10 diff --git a/meson.build b/meson.build 11 - index 7ede6f7a96..90860be99a 100644 12 --- a/meson.build 13 +++ b/meson.build 14 - @@ -2795,7 +2795,6 @@ install_data('LICENSE.GPL2', 15 install_subdir('LICENSES', 16 install_dir : docdir) 17
··· 8 1 file changed, 1 deletion(-) 9 10 diff --git a/meson.build b/meson.build 11 + index a4730f0570..b5aaecd669 100644 12 --- a/meson.build 13 +++ b/meson.build 14 + @@ -2815,7 +2815,6 @@ install_data('LICENSE.GPL2', 15 install_subdir('LICENSES', 16 install_dir : docdir) 17
-57
pkgs/os-specific/linux/systemd/0018-bootctl-do-not-fail-when-the-same-file-is-updated-mu.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Yu Watanabe <watanabe.yu+github@gmail.com> 3 - Date: Wed, 19 Jun 2024 16:11:23 +0900 4 - Subject: [PATCH] bootctl: do not fail when the same file is updated multiple 5 - times 6 - 7 - In the second or later trial, copy_file_with_version_check() -> version_check() 8 - fails with -ESRCH. Let's ignore the failure. 9 - 10 - This also adds missing assertions in update_efi_boot_binaries(), and 11 - drop redundant version check in update_efi_boot_binaries(), as version 12 - will be anyway checked later. 13 - 14 - Fixes a regression caused by 929f41c6528fb630753d4e2f588a8eb6c2f6a609. 15 - Fixes #33392. 16 - --- 17 - src/bootctl/bootctl-install.c | 16 +++++++--------- 18 - 1 file changed, 7 insertions(+), 9 deletions(-) 19 - 20 - diff --git a/src/bootctl/bootctl-install.c b/src/bootctl/bootctl-install.c 21 - index e15c2c6bed..5b4cff5d5e 100644 22 - --- a/src/bootctl/bootctl-install.c 23 - +++ b/src/bootctl/bootctl-install.c 24 - @@ -329,6 +329,9 @@ static int update_efi_boot_binaries(const char *esp_path, const char *source_pat 25 - _cleanup_free_ char *p = NULL; 26 - int r, ret = 0; 27 - 28 - + assert(esp_path); 29 - + assert(source_path); 30 - + 31 - r = chase_and_opendir("/EFI/BOOT", esp_path, CHASE_PREFIX_ROOT|CHASE_PROHIBIT_SYMLINKS, &p, &d); 32 - if (r == -ENOENT) 33 - return 0; 34 - @@ -354,19 +357,14 @@ static int update_efi_boot_binaries(const char *esp_path, const char *source_pat 35 - if (r == 0) 36 - continue; 37 - 38 - - r = get_file_version(fd, &v); 39 - - if (r == -ESRCH) 40 - - continue; /* No version information */ 41 - - if (r < 0) 42 - - return r; 43 - - if (!startswith(v, "systemd-boot ")) 44 - - continue; 45 - - 46 - _cleanup_free_ char *dest_path = path_join(p, de->d_name); 47 - if (!dest_path) 48 - return log_oom(); 49 - 50 - - RET_GATHER(ret, copy_file_with_version_check(source_path, dest_path, /* force = */ false)); 51 - + r = copy_file_with_version_check(source_path, dest_path, /* force = */ false); 52 - + if (IN_SET(r, -ESTALE, -ESRCH)) 53 - + continue; 54 - + RET_GATHER(ret, r); 55 - } 56 - 57 - return ret;
···
pkgs/os-specific/linux/systemd/0020-install-unit_file_exists_full-follow-symlinks.patch pkgs/os-specific/linux/systemd/0019-install-unit_file_exists_full-follow-symlinks.patch
pkgs/os-specific/linux/systemd/0021-timesyncd-disable-NSCD-when-DNSSEC-validation-is-dis.patch pkgs/os-specific/linux/systemd/0020-timesyncd-disable-NSCD-when-DNSSEC-validation-is-dis.patch
+5 -9
pkgs/os-specific/linux/systemd/default.nix
··· 195 let 196 wantCurl = withRemote || withImportd; 197 198 - version = "257.7"; 199 200 # Use the command below to update `releaseTimestamp` on every (major) version 201 # change. More details in the commentary at mesonFlags. ··· 215 owner = "systemd"; 216 repo = "systemd"; 217 rev = "v${version}"; 218 - hash = "sha256-9OnjeMrfV5DSAoX/aetI4r/QLPYITUd2aOY0DYfkTzQ="; 219 }; 220 221 # On major changes, or when otherwise required, you *must* : ··· 245 ./0016-systemctl-edit-suggest-systemdctl-edit-runtime-on-sy.patch 246 ./0017-meson.build-do-not-create-systemdstatedir.patch 247 248 - # https://github.com/systemd/systemd/issues/33392 249 - # https://github.com/systemd/systemd/pull/33400 250 - ./0018-bootctl-do-not-fail-when-the-same-file-is-updated-mu.patch 251 - 252 # systemd tries to link the systemd-ssh-proxy ssh config snippet with tmpfiles 253 # if the install prefix is not /usr, but that does not work for us 254 # because we include the config snippet manually 255 - ./0019-meson-Don-t-link-ssh-dropins.patch 256 257 - ./0020-install-unit_file_exists_full-follow-symlinks.patch 258 ] 259 ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isGnu) [ 260 - ./0021-timesyncd-disable-NSCD-when-DNSSEC-validation-is-dis.patch 261 ] 262 ++ lib.optionals (stdenv.hostPlatform.isPower64) [ 263 # Auto-detect ELF ABI instead of hardcoding ELFv2 for BPF build
··· 195 let 196 wantCurl = withRemote || withImportd; 197 198 + version = "257.8"; 199 200 # Use the command below to update `releaseTimestamp` on every (major) version 201 # change. More details in the commentary at mesonFlags. ··· 215 owner = "systemd"; 216 repo = "systemd"; 217 rev = "v${version}"; 218 + hash = "sha256-XQ+IyRar74qQij96CKClHXW0kkPnGeKUgA8ULiWh5YY="; 219 }; 220 221 # On major changes, or when otherwise required, you *must* : ··· 245 ./0016-systemctl-edit-suggest-systemdctl-edit-runtime-on-sy.patch 246 ./0017-meson.build-do-not-create-systemdstatedir.patch 247 248 # systemd tries to link the systemd-ssh-proxy ssh config snippet with tmpfiles 249 # if the install prefix is not /usr, but that does not work for us 250 # because we include the config snippet manually 251 + ./0018-meson-Don-t-link-ssh-dropins.patch 252 253 + ./0019-install-unit_file_exists_full-follow-symlinks.patch 254 ] 255 ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isGnu) [ 256 + ./0020-timesyncd-disable-NSCD-when-DNSSEC-validation-is-dis.patch 257 ] 258 ++ lib.optionals (stdenv.hostPlatform.isPower64) [ 259 # Auto-detect ELF ABI instead of hardcoding ELFv2 for BPF build