If NVRAM has disabled entries, for example with the following efibootmgr output:
Boot0001* Shim
Boot0002 Windows Boot Manager
Boot0003* Fedora
Boot0004* Windows Boot Manager
Entry Boot0002 is disabled, or "inactive", as indicated by the asterisk missing. Should that be taken into account? Currently the script just ignores the active state and pick the first one matching regardless of whether it's inactive or not, in this case bootnext windows will match the inactive Boot0002. Not what I wanted.
Can we have an extra flag, or even make it default, to skip over inactive entries?
If NVRAM has disabled entries, for example with the following
efibootmgroutput:Entry
Boot0002is disabled, or "inactive", as indicated by the asterisk missing. Should that be taken into account? Currently the script just ignores the active state and pick the first one matching regardless of whether it's inactive or not, in this casebootnext windowswill match the inactiveBoot0002. Not what I wanted.Can we have an extra flag, or even make it default, to skip over inactive entries?