efi_loader: bootmgr: make BootNext non-volatile
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 4 Jun 2019 06:52:09 +0000 (15:52 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 4 Jun 2019 21:56:14 +0000 (23:56 +0200)
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_bootmgr.c

index 43791422c8191d3081e0b71fdbe96abb91ab7779..b2102c5b5af24697e65aa9b3a97f5295f657751c 100644 (file)
@@ -210,7 +210,8 @@ efi_status_t efi_bootmgr_load(efi_handle_t *handle)
                ret = EFI_CALL(efi_set_variable(
                                        L"BootNext",
                                        (efi_guid_t *)&efi_global_variable_guid,
-                                       0, 0, &bootnext));
+                                       EFI_VARIABLE_NON_VOLATILE, 0,
+                                       &bootnext));
 
                /* load BootNext */
                if (ret == EFI_SUCCESS) {