freebsd-dev/usr.sbin/efivar
Warner Losh 66c613905f Tweak output of the loader variable
When the DEVICE_PATH is <= 4 that means it's effectively empty. I have
a laptop that has a BIOS that likes to generate these:

8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot2001
0000: 01 00 00 00 04 00 45 00 46 00 49 00 20 00 55 00
0010: 53 00 42 00 20 00 44 00 65 00 76 00 69 00 63 00
0020: 65 00 00 00 7f ff 04 00 52 43

which now decodes as
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot2001
* EFI USB Device
Empty path
Option:
0000: 52 43

which matches my hand-decode.

Add an extra newline after Option: to make it look nice.

I suspect that these entries really should be VenHw entries instead,
but my ability to change that is NIL, so cope with them as best we can.

efibootmgr(8)'s output is fine and doesn't need adjusting.
2020-09-25 18:20:41 +00:00
..
efiutil.c Tweak output of the loader variable 2020-09-25 18:20:41 +00:00
efiutil.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
efivar.8 Fix the --guid flag description 2020-06-18 12:29:24 +00:00
efivar.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
Makefile
Makefile.depend