From 0ca99d442e9d0a49d3ec373413d781ca392b57bc Mon Sep 17 00:00:00 2001 From: Dima Zavin Date: Mon, 8 Jan 2024 11:23:20 -0800 Subject: [PATCH] efibootmgr: delete_bootnext is just a boolean, not an entry id When deleting bootnext, there's nothing to validate (other than the variable existing, in which case del will fail as expected). This appears to be a copy/paste error when adding the delete-bootnext option from the [create] bootnext option. Signed-off-by: Dima Zavin --- src/efibootmgr.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/efibootmgr.c b/src/efibootmgr.c index b35fcf4..6f51d33 100644 --- a/src/efibootmgr.c +++ b/src/efibootmgr.c @@ -1928,10 +1928,6 @@ main(int argc, char **argv) } if (opts.delete_bootnext) { - if (!is_current_entry(opts.delete_bootnext)) - errorx(17, "Boot entry %04X does not exist", - opts.delete_bootnext); - ret = efi_del_variable(EFI_GLOBAL_GUID, "BootNext"); if (ret < 0) error(10, "Could not delete BootNext");