Make not getting BootOrder a warning, not a fatal error when printing.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2018-03-16 18:16:31 +00:00
parent 9c45f7b4fd
commit 3fcd5d6e92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331069

View file

@ -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");