]> git.sur5r.net Git - u-boot/commit
efi_loader: Disable env_save() call on boot
authorAlexander Graf <agraf@suse.de>
Thu, 19 Oct 2017 21:23:50 +0000 (23:23 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 29 Oct 2017 11:59:08 +0000 (07:59 -0400)
commit405835645a2db17152e6d6cdb4c9d1893f9501cc
treefd582f134ada74e147f6a70cc1f6a19384122be2
parentbb3d9ed3a9efc64cf05295167cddfe0adf2fb7d9
efi_loader: Disable env_save() call on boot

With the introduction of EFI variable support, we also wanted to persist
these EFI variables. However, the way it was implemented we ended up
persisting all U-Boot environment variables on every EFI boot.

That could potentially lead to unexpected side effects because variables
that were not supposed to be written to persisted env get written. It also
means we may end up writing the environment more often than we should.

For this release, let's just disable EFI variable persistence and instead
implement it properly for the next one.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Fixes: ad644e7c182 ("efi_loader: efi variable support")
Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c