rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
514 stars 97 forks source link

efibootmgr: delete_bootnext is just a boolean, not an entry id #198

Closed dimaz-waymo closed 7 months ago

dimaz-waymo commented 8 months ago

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.

dimaz-waymo commented 8 months ago

Before the change:

$ efibootmgr BootNext: 0002 BootCurrent: 0002 ... $ sudo efibootmgr -N Boot entry 0001 does not exist

After the change

$ sudo src/efibootmgr -N BootCurrent: 0002 ...

I think this has gone unnoticed because most distributions have a Boot0001 entry so this error wasn't raised.