On Fri, Jun 21, 2013 at 1:27 AM, Michael Chang <[email protected]> wrote: > My fresh vm installation with OVMF firmware has problem that the OS boot > entry are not displayed by boot manager. It happens only when the EFI > System Partition are created from scratch, that is there's no NvVars in > it initially. > > After some testing and debugging, the cause is modified BootOrder gets > overwritten by the loaded NvVars, which is using a stale dump created > from previous boot. > > This patch fixes the problem for me by handing the initial case (ie NvVars > file not found) with loading NvVars immediately after it's been saved. Then > the system is flagged as NvVars loaded and would not attempt to restore it > in reboot which could always use stale dumps.
Is the side-effect of calling LoadNvVarsFromFs that the "NvVars" variable is set, and this fixes things? Maybe SaveNvVarsToFs should make sure this variable is set? -Jordan ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
