aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt2019-02-24 04:44:48 +0100
committerHeinrich Schuchardt2019-02-25 12:39:47 +0100
commit33e44971a203dbadae0b7513135105b5bec156aa (patch)
tree4e2bb8c8b8afab490f08e389de1a0b0b785fff30 /lib
parentafd46c5f13d0c93c44008bd7040227d0b84e31b9 (diff)
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 <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_bootmgr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index 196116b5472..f4b1889dc63 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++) {