From: AKASHI Takahiro Date: Tue, 4 Jun 2019 06:52:09 +0000 (+0900) Subject: efi_loader: bootmgr: make BootNext non-volatile X-Git-Tag: v2019.07-rc4~8^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=366161cf976c41f2cfabbb896c8f9a94c31886ce;p=oweals%2Fu-boot.git efi_loader: bootmgr: make BootNext non-volatile Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 43791422c8..b2102c5b5a 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_bootmgr.c @@ -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) {