RFC: What are your gripes with `efibootmgr`, and would you use a better version of it?
I recently switched from the mainline kernel to the LTS one, and had one hell of a time editing the boot entries (I use EFISTUB, so no bootloader) with efibootmgr. It felt incredibly clunky and frustratingly sparse in terms of documentation. I have a few noticeable gripes with it now:
- Boot entries cannot be edited, and instead need to be deleted an re-created all over again.
- Boot order cannot be changed trivially, the entire order has to be passed to the flag including the ones that haven't changed position.
- The default output is unreadable as it is not in unicode; I don't see how this benefits anyone using the tool.
I want to reach out to the community (you) and ask what your gripes are, and whether you would be interested in an improved efibootmgr equivalent?
About this post
- Posted
- Archived
- Score
- 15 · 94% up
- Kind
- Text
- ID
- 18j6o7x
8 comments
First, the name should be changed. "efibootmgr" implies that it's the EFI boot manager. It's not. It's a tool that's used to edit the EFI boot manager entries.
Second, it clearly needs to read a config file. This functionality could be added in a backwards compatible way, retaining the current command line syntax. This would solve your first two bullet points.
As for the unicode, I suspect it's just copying strings with no knowledge of the encoding. Maybe the entries are in utf16 or something. This should be fixed to. The tool should translate between whatever is used for the entries and whatever your locale calls for.
The entries are in either UTF16 or UCS2, I forget which is used by UEFI firmware.
I use a simple Bash script to configure the Boot entries
the 0000 entry is Windows
So for me a tool would not have much benefit because it is quite easy to edit the script.
I've ran into all of those issues you mentioned and yeah, each and every one is annoying, especially that you cannot edit (or even recreate the boot entry).
The tool also fails to set my boot order correctly, but I think that's a limitation of my B550 Tomahawk. Setting the boot order in BIOS works, so whatever.
Definitely would be interested. I would love it to just print the current EFI boot situation. Anything else would be a bonus. It's such an important part of setting up a system or recovering from failure it would be great if it has a simple and intuitive CLI with good feedback.
It works when I need it, that's it. Clunky CLI would be for sure more annoying if I had to update those EFI entries often. But that's not usually the case, as I use a bootloader (refind)
It's easier to just use your uefi boot manager
This is the biggest problem IMHO: I'd like to give a number like Boot0001 or a name like "Arch", to:
That's not as bad, but I would like to do insertions: using anything from the current set of boot entries, I should be able to express the relation I want: if I say
Boot001 --after Boot01A, I'd like if Boot01A is absent from the list to get an error, but if it's present and so is Boot001, remove Boot0001 from the order list, and reinsert it right after Boot01A wherever it is.