How do I setup UEFI persisent variables?

asked 2017-05-12 10:25:49 -0600

jward gravatar image

I am currently trying to modify some EFI variables for a UEFI bootable linux OS and have noticed that the variables are not persistent on reboot. Looking at the source the OVMF.CODE.fd is copied and used as the OVMF.VARS.fd on every boot blowing away any previous variables. Is there a way to provide a CODE and VARS section and keep the VARS persistent with the image? I've tested this on Mitaka but the code appears to be the same in the latest release.

edit retag flag offensive close merge delete