From 3fcd5d6e9248659ddf7c8077cb974f77d74482b3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 16 Mar 2018 18:16:31 +0000 Subject: [PATCH] Make not getting BootOrder a warning, not a fatal error when printing. Sponsored by: Netflix --- usr.sbin/efibootmgr/efibootmgr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c index d4253975ec7f..89199ccfd0eb 100644 --- a/usr.sbin/efibootmgr/efibootmgr.c +++ b/usr.sbin/efibootmgr/efibootmgr.c @@ -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");