From: Heinrich Schuchardt Date: Sun, 24 Feb 2019 03:44:48 +0000 (+0100) Subject: efi_loader: error message if BootOrder not defined X-Git-Tag: v2019.04-rc3~10^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33e44971a203dbadae0b7513135105b5bec156aa;p=platform%2Fkernel%2Fu-boot.git efi_loader: error message if BootOrder not defined For booting via `bootefi bootmgr` it is necessary that the EFI variable BootOrder is defined. Provide a diagnostic message if the variable is missing. Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 196116b..f4b1889 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_bootmgr.c @@ -184,8 +184,10 @@ void *efi_bootmgr_load(struct efi_device_path **device_path, rs = systab.runtime; bootorder = get_var(L"BootOrder", &efi_global_variable_guid, &size); - if (!bootorder) + if (!bootorder) { + printf("BootOrder not defined\n"); goto error; + } num = size / sizeof(uint16_t); for (i = 0; i < num; i++) {