svn commit: r331069 - head/usr.sbin/efibootmgr
Warner Losh
imp at FreeBSD.org
Fri Mar 16 18:16:34 UTC 2018
Author: imp
Date: Fri Mar 16 18:16:31 2018
New Revision: 331069
URL: https://svnweb.freebsd.org/changeset/base/331069
Log:
Make not getting BootOrder a warning, not a fatal error when printing.
Sponsored by: Netflix
Modified:
head/usr.sbin/efibootmgr/efibootmgr.c
Modified: head/usr.sbin/efibootmgr/efibootmgr.c
==============================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c Fri Mar 16 18:16:27 2018 (r331068)
+++ head/usr.sbin/efibootmgr/efibootmgr.c Fri Mar 16 18:16:31 2018 (r331069)
@@ -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");
More information about the svn-src-all
mailing list