rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
519 stars 98 forks source link

Better way to identify entries #216

Open eoli3n opened 1 month ago

eoli3n commented 1 month 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 1 month ago

You deserve an answer too buddy, here it is