
22 Oct
2017
22 Oct
'17
4:37 p.m.
On 20 October 2017 at 00:15, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
The current implementation of saving of EFI variables has unwanted side effects:
- Writing to flash on every boot may harm the memory.
- All variables are saved. Not only the EFI ones.
- Variables are saved even if there is not change.
So let us disable saving for now until we have a complete solution.
This will also mean every boot is "first boot", ie. falling back to fallback.efi to populate BootOrder/BootNNNN variables, and never using bootmgr.
Fixes: ad644e7c1823 efi_loader: efi variable support Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
lib/efi_loader/efi_boottime.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org