Skip to content

Conversation

@vathpela
Copy link
Member

This adds some convenience features (as well as a few minor housekeeping patches):

efibootmgr --query -L "label" -exit success if present, failure if not
efibootmgr --query -b 0001 -exit success if present, failure if not
efibootmgr --query [-L label | -b num] --show-order-position - list the indices in the boot order where the specified entry is present
efibootmgr --query -L label --show-bootnum - show the bootnum for all entries with a given label
efibootmgr -c ... --append-order - add new entry to the end of the boot order

This adds a make target for compile_commands.json, for use with CoQ or
other similar utilities.

Signed-off-by: Peter Jones <[email protected]>
This means you can use --verbose=2 for things that don't just dump data.

Signed-off-by: Peter Jones <[email protected]>
This fixes and works around a few minor issues, of this variety:

- obnoxious whitespace
- clangd getting confused

Signed-off-by: Peter Jones <[email protected]>
This adds "efibootmgr --query", which can be used in conjunction with
"--bootnum N" or "--label LABEL".  When envoked this way, efibootmgr
will return success if any boot variable with either the supplied number
or label exists, and failure if it does not.

Signed-off-by: Peter Jones <[email protected]>
This adds two options, "--show-order-position" and "--show-bootnum",
which can be used with "efibootmgr --query".

With "--show-bootnum", efibootmgr will list, one per line, all the
numbers of boot entries which correspond with the label provided with
"--label" (or, less usefully, the number provided with "--bootnum").

With "--show-order-position", efibootmgr will list, one per line, the
0-indexed position of any matching entries in the BootOrder variable.

Signed-off-by: Peter Jones <[email protected]>
This adds the ability to use "--append-order" (or "--index -1") with
"efibootmgr -c" to append to BootOrder.

Signed-off-by: Peter Jones <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant