summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2023-05-30 18:42:50 -0400
committerWill Fancher <elvishjerricco@gmail.com>2023-05-30 19:21:16 -0400
commit6727bab05eb516fa3c6ec53c39c4b7499ee55539 (patch)
tree0a025781351d9f43fe3296d3a72a1bbd8890939c /pkgs/os-specific/linux/systemd
parent58c85835512b0db938600b6fe13cc3e3dc4b364e (diff)
downloadnixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.tar
nixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.tar.gz
nixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.tar.bz2
nixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.tar.lz
nixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.tar.xz
nixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.tar.zst
nixpkgs-6727bab05eb516fa3c6ec53c39c4b7499ee55539.zip
systemd-boot: Patch for firmwares that fail to load large files
Diffstat (limited to 'pkgs/os-specific/linux/systemd')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index fbf56b8c30a..7275d275f74 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -190,6 +190,16 @@ stdenv.mkDerivation (finalAttrs: {
     ./0017-inherit-systemd-environment-when-calling-generators.patch
     ./0018-core-don-t-taint-on-unmerged-usr.patch
     ./0019-tpm2_context_init-fix-driver-name-checking.patch
+
+    (fetchpatch {
+      # https://github.com/systemd/systemd/pull/25948
+      #
+      # [Firmware file size bug]: Some UEFI firmwares fail on large
+      # reads. Now that systemd-boot loads initrd itself, systems with
+      # such firmware won't boot without this fix
+      url = "https://github.com/systemd/systemd/commit/3ed1d966f00b002ed822ca9de116252bd91fe6c3.patch";
+      hash = "sha256-pwXrLTScqgnvfddlzUBZpwsoMrvRLcZPp6e4whMcyL4=";
+    })
   ] ++ lib.optional stdenv.hostPlatform.isMusl (
     let
       oe-core = fetchzip {