diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2023-05-30 18:42:50 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2023-05-30 19:21:16 -0400 |
commit | 6727bab05eb516fa3c6ec53c39c4b7499ee55539 (patch) | |
tree | 0a025781351d9f43fe3296d3a72a1bbd8890939c /pkgs/os-specific/linux/systemd | |
parent | 58c85835512b0db938600b6fe13cc3e3dc4b364e (diff) | |
download | nixpkgs-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.nix | 10 |
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 { |