aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efivar/efiutil.c
Commit message (Collapse)AuthorAgeFilesLines
* Tweak output of the loader variableWarner Losh2020-09-251-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=366164
* Add the unix path to the output of `efivar --load-option`Rebecca Cran2019-02-201-1/+10
| | | | | | | | | Reviewed by: imp Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D19242 Notes: svn path=/head/; revision=344337
* Regularize the Netflix copyrightWarner Losh2019-02-041-1/+0
| | | | | | | | | | | | | | | Use recent best practices for Copyright form at the top of the license: 1. Remove all the All Rights Reserved clauses on our stuff. Where we piggybacked others, use a separate line to make things clear. 2. Use "Netflix, Inc." everywhere. 3. Use a single line for the copyright for grep friendliness. 4. Use date ranges in all places for our stuff. Approved by: Netflix Legal (who gave me the form), adrian@ (pmc files) Notes: svn path=/head/; revision=343755
* Fix pointer arithmetic botch.Warner Losh2018-10-261-3/+4
| | | | | | | | | | Pointer subtraction to find size only works with char pointers. Noticed by: jhb@ Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=339801
* Require that we have at least a device path header beforeWarner Losh2018-10-261-1/+1
| | | | | | | | | trying to decode the next device path. Sponsored by: Netflix, Inc Notes: svn path=/head/; revision=339798
* Iniailize str so ucs2_to_utf8 won't free stack garbage.Warner Losh2017-12-121-1/+1
| | | | | | | | CID: 1381037 Sponsored by: Netflix Notes: svn path=/head/; revision=326805
* Create efi utility printing routinesWarner Losh2017-09-071-0/+179
Split out asciidump, utf8dump, bindump, and hexdump into a separate file efiutil.c. Implement new efi_print_load_option for printing out the EFI_LOADER_OPTION data structure used to specify different options to the UEFI boot manager. Sponsored by: Netflix Notes: svn path=/head/; revision=323260