audk/ArmPkg
Ard Biesheuvel 2d233af64b ArmPkg/PlatformBootManagerLib: regenerate boot options on boot failure
One of the side effects of the recent changes to PlatformBootManagerLib
changes to avoid connecting all devices on every boot is that we no
longer default to network boot on a virgin boot, but end up in the
UiApp menu. At this point, the UiApp will instantiate the autogenerated
boot options that we used to rely on as before, but since we are already
sitting idle in the root UiApp menu at that point, it does break the
unattended boot case where devices are expected to attempt a network
boot on the very first power on.

Let's work around this by refreshing all boot options explicitly in
the UnableToBoot() handler, and rebooting the system if doing so
resulted in a change to the total number of configured boot options.
This way, we ultimately end up in the UiApp as before if no boot
options could be started, but only after all the autogenerated ones
have been attempted as well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Andrei Warkentin <awarkentin@vmware.com>
2020-06-17 18:28:29 +00:00
..
Drivers ArmPkg/MmCommunicationDxe: expose MM Communicate 2 protocol 2020-05-12 19:23:44 +00:00
Filesystem/SemihostFs ArmPkg: Fix various typos 2019-07-04 12:20:28 +01:00
Include ArmPkg/CpuDxe: move PageAttributeToGcdAttribute() out of ArmMmuLib 2020-04-02 12:35:52 +00:00
Library ArmPkg/PlatformBootManagerLib: regenerate boot options on boot failure 2020-06-17 18:28:29 +00:00
ArmPkg.dec ArmPkg/ArmSmcPsciResetSystemLib: remove EnterS3WithImmediateWake () 2020-01-14 22:12:17 +00:00
ArmPkg.dsc ArmPkg: only attempt buildin MmCommunicationDxe for AArch64 2020-06-07 21:13:13 +00:00