mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
Make not getting BootOrder a warning, not a fatal error when printing.
Sponsored by: Netflix
This commit is contained in:
parent
9c45f7b4fd
commit
3fcd5d6e92
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331069
|
@ -285,8 +285,10 @@ print_order(void)
|
|||
uint8_t *data;
|
||||
size_t size, i;
|
||||
|
||||
if (efi_get_variable(EFI_GLOBAL_GUID, "BootOrder", &data, &size, &attrs) < 0)
|
||||
errx(1, "Couldn't get value for BootOrder\n");
|
||||
if (efi_get_variable(EFI_GLOBAL_GUID, "BootOrder", &data, &size, &attrs) < 0) {
|
||||
printf("BootOrder : Couldn't get value for BootOrder\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (size % 2 == 1)
|
||||
errx(1, "Bad BootOrder variable: odd length");
|
||||
|
|
Loading…
Reference in a new issue