diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-10-26 22:13:40 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-10-26 22:13:40 +0000 |
commit | e08bb1091c785305ccf552e612019aa94ab1cc5b (patch) | |
tree | be3eeb664a452ee7c1fe556597be0199dd3db9a4 /usr.sbin/efivar/efivar.8 | |
parent | 9a815e0a58cc754559cf2f4a9201b118e31e00d8 (diff) | |
download | src-e08bb1091c785305ccf552e612019aa94ab1cc5b.tar.gz src-e08bb1091c785305ccf552e612019aa94ab1cc5b.zip |
Implenent --fromfile to read variable values when printing variables
So
./efivar --fromfile Boot0001.bin --print --load-option
will take the value from Boot0001.bin file and then decode it as if it
were a load-option. This is useful for debugging handling of such
variables that may be hanging the boot for some people.
Sponsored by: Netflix, Inc
Notes
Notes:
svn path=/head/; revision=339797
Diffstat (limited to 'usr.sbin/efivar/efivar.8')
-rw-r--r-- | usr.sbin/efivar/efivar.8 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/efivar/efivar.8 b/usr.sbin/efivar/efivar.8 index 07c7366e7dec..7113ba931e46 100644 --- a/usr.sbin/efivar/efivar.8 +++ b/usr.sbin/efivar/efivar.8 @@ -86,8 +86,17 @@ This flag implies .Fl -write unless the .Fl -append -flag is given. -This behavior is not well understood and is currently unimplemented. +or +.Fl -print +flags are given. +This behavior is not well understood and is currently unimplemented +for writes. +When +.Fl -print +is specified, the contents of the file are used as the value to +print using any other specified flags. +This is used primarily for testing purposes for more complicated +variable decoding. .It Fl a Fl -append Append the specified value to the UEFI variable rather than replacing it. |