Skip to content

Commit b2ccc8e

Browse files
committed
efibootmgr: fix setting boot order with orphaned entries
Some firmware adds entries to BootOrder that don't have corresponding Boot#### variables. This caused a fatal error when using -o to set the boot order. Apply upstream patch to downgrade to a warning so users can still manage the boot order in this case. rhboot/efibootmgr#228
1 parent a5400b0 commit b2ccc8e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkgs/by-name/ef/efibootmgr/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ stdenv.mkDerivation (finalAttrs: {
3333
url = "https://github.com/rhboot/efibootmgr/commit/3eac27c5fccf93d2d6e634d6fe2a76d06708ec6e.diff?full_index=1";
3434
hash = "sha256-zXkmfW+BYv8jc/dibu0LEni06KyydVjfW/Lug0i+jUw=";
3535
})
36+
(fetchpatch2 {
37+
# https://github.com/rhboot/efibootmgr/pull/228
38+
name = "efibootmgr_downgrade-missing-boot-entry-in-order-to-warning.patch";
39+
url = "https://patch-diff.githubusercontent.com/raw/rhboot/efibootmgr/pull/228.diff?full_index=1";
40+
hash = "sha256-7et0GuUNBx+hcQXi2sInosfx4tvrSrtRRrU38zBuflY=";
41+
})
3642
];
3743

3844
nativeBuildInputs = [ pkg-config ];

0 commit comments

Comments
 (0)