Skip to content

Commit

Permalink
Bug fix, efibootmgr cannot set boot entries active/inactive
Browse files Browse the repository at this point in the history
Patch to address a bug in the current version of efibootmgr, described
at rhboot/efibootmgr#186
  • Loading branch information
n2qz committed Dec 10, 2023
1 parent 081e2db commit b46987f
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# https://github.com/rhboot/efibootmgr/issues/186
commit 3eac27c5fccf93d2d6e634d6fe2a76d06708ec6e
Author: kmicki <[email protected]>
Date: Tue Nov 15 14:37:25 2022 +0100

Update efibootmgr.c

get_entry: return entry if it was found before reaching the end of the list

Signed-off-by: kmicki <[email protected]>

diff --git a/src/efibootmgr.c b/src/efibootmgr.c
index b980bcd..4b15d6d 100644
--- a/src/efibootmgr.c
+++ b/src/efibootmgr.c
@@ -1192,6 +1192,7 @@ get_entry(list_t *entries, uint16_t num)
entry = NULL;
continue;
}
+ return entry;
}

return entry;

0 comments on commit b46987f

Please sign in to comment.