Thanks for the bug and your analysis. I found this bug[1] upstream which is a match.
The patch linked there is slightly different, but with the same purpose: From 3eac27c5fccf93d2d6e634d6fe2a76d06708ec6e Mon Sep 17 00:00:00 2001 From: kmicki <[email protected]> Date: Tue, 15 Nov 2022 14:37:25 +0100 Subject: [PATCH] Update efibootmgr.c get_entry: return entry if it was found before reaching the end of the list Signed-off-by: kmicki <[email protected]> --- src/efibootmgr.c | 1 + 1 file changed, 1 insertion(+) 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; Since that is what is committed upstream, I'll prefer that variant. Would you be up to preparing a merge request with that upstream patch? I can guide you through it. If not, I can also prepare the update. 1. https://github.com/rhboot/efibootmgr/issues/186 2. https://github.com/rhboot/efibootmgr/commit/3eac27c5fccf93d2d6e634d6fe2a76d06708ec6e ** Bug watch added: github.com/rhboot/efibootmgr/issues #186 https://github.com/rhboot/efibootmgr/issues/186 ** Also affects: efibootmgr (Ubuntu Oracular) Importance: Undecided Status: New ** Also affects: efibootmgr (Ubuntu Plucky) Importance: Undecided Status: New ** Also affects: efibootmgr (Ubuntu Questing) Importance: Undecided Status: New ** Also affects: efibootmgr (Ubuntu Noble) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2112632 Title: comands active and inactive do not work To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/efibootmgr/+bug/2112632/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
