efi_loader: simplify 'printenv -e'
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 15 Jul 2020 16:00:56 +0000 (18:00 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 16 Jul 2020 10:37:03 +0000 (12:37 +0200)
commitc70f44817d466848c421ed7159bc9aba428e69ad
tree7f28dd47622db132660b78ef0c9c1847c3e13969
parent627ab390d8ded26f4b8267c55fc4ce39145f24aa
efi_loader: simplify 'printenv -e'

Currently default output of 'printenv -e' is restricted to variables with
GUID EFI_GLOBAL_VARIABLE. This excludes db and dbx. As the number of
variables is small there is no need for this restriction.

If no GUID is provided, print all matching variables irrespective of GUID.

Always show the numeric value of the GUID.

If the GUID provided to 'setenv -e' is invalid, return CMD_RET_USAGE.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/nvedit.c
cmd/nvedit_efi.c