rhboot / efibootmgr

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

Better way to identify entries #141

Closed eoli3n closed 2 years ago

eoli3n commented 3 years ago

Here what I need to do to automate boot order with a dynamic entry selection

efibootmgr -o "$(efibootmgr | awk -F'*' '/IPV4/ {print substr($1,5,4)}'),$(efibootmgr | awk -F'*' '/ubuntu/ {print substr($1,5,4)}')"

I suggest, for exemple, to be able to set boot order with a string which match an entry, which would be way more simpler and dynamic.

efibootmgr -o "IPV4,ubuntu"

Why entries are prefixed with "Boot" if i can't use -o Boot0001 ?

eoli3n commented 2 years ago

is there anybody here ?

frozencemetery commented 2 years ago

Here what I need to do to automate boot order with a dynamic entry selection

Yeah, I can't immediately tell what this code is doing. Can you explain what you're trying to do?

is there anybody here ?

Open source project, reasonable patches welcome, etc.

eoli3n commented 2 years ago

Can you explain what you're trying to do?

Please read the issue, its crystal clear. I also asked a question that you didn't answer.

Open source project

As UEFI is now generalizing, this project is first-class citizen, and deserve way more work (not one year to read an issue).

frozencemetery commented 2 years ago

https://github.com/rhboot/efibootmgr/blob/main/CODE_OF_CONDUCT.md