From 4ec6b03ac8497af2e654f9db44b13d765d1d4323 Mon Sep 17 00:00:00 2001 From: Mark Guptill Date: Tue, 10 Mar 2026 18:18:30 -0400 Subject: [PATCH] efibootmgr: downgrade missing boot entry in order to warning Some firmware adds entries to BootOrder that don't have corresponding Boot#### variables. Previously this caused a fatal error when using -o to set the boot order. Downgrade to a warning so users can still set the boot order in this case. Signed-off-by: Mark Guptill --- src/efibootmgr.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/efibootmgr.c b/src/efibootmgr.c index 0094e05..fa7a59d 100644 --- a/src/efibootmgr.c +++ b/src/efibootmgr.c @@ -809,16 +809,11 @@ parse_order(const char *prefix, char *buffer, uint16_t **order, size_t *length) exit(8); } - /* make sure this is an existing entry */ - if (!is_current_entry(result)) { - off_t offset = (intptr_t)buf - (intptr_t)buffer; - print_error_arrow(buffer, offset, - "Invalid %s order entry value", - prefix); + /* warn if this entry doesn't exist, but allow it since + * firmware may add entries to the boot order that don't + * have corresponding Boot#### variables */ + if (!is_current_entry(result)) warnx("entry %04lX does not exist", result); - free(data); - exit(8); - } data[i++] = result; buf[comma] = ',';