efiboots
efiboots copied to clipboard
add duplicate button
This is my first attempt for #35. I added a button "duplicate", which calls the "add" function with an additional parameter. The add function then finds the selected row and sets the input fields.
I currently have the problem, that the parameters are somehow encoded, but I will look into that.
I fixed the strange parameter output with adding "-i" to the efibootmgr call. Works for me in all cases.
Thanks for your contribution!
The -u option was added in efibootmgr 18, which was released recently. This program is not compatible with the new output format (I get lots of parsing errors on my pc). I still have to look into this, but it looks like they finally improved the output.
I think I will release version 1.1, the last one that supports efibootmgr 17. Then release version 2.0 that works only with efibootmgr 18.
The duplicate button feature looks ok, I will try it later.
Thanks for the quick response. I did not think about different efibootmgr version. Maybe you should add a version check and a warning on startup, so users get a clue why something might not be working. As far as I can tell it seems to work on my machine with efibootmgr 18 and the -u flag.