Skip to content

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

Merged
vathpela merged 1 commit intorhboot:mainfrom
dimaz-waymo:fix_delete_bootnext
Jan 23, 2024
Merged

efibootmgr: delete_bootnext is just a boolean, not an entry id#198
vathpela merged 1 commit intorhboot:mainfrom
dimaz-waymo:fix_delete_bootnext

Conversation

@dimaz-waymo
Copy link
Contributor

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.

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 <[email protected]>
@dimaz-waymo
Copy link
Contributor Author

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.

@vathpela vathpela merged commit 0ca99d4 into rhboot:main Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants