On 11/05/19 07:15, Andrew Fish via Groups.Io wrote: > You could also edit any existing variables that point to your Load File to > make sure they follow the rules you care about? > > It is legal from an UEFI spec point of view for a platform to edit the nvram > boot variables based on platform boot policy.
Good point; for example OVMF and ArmVirtQemu* do this, with the help of QemuBootOrderLib. In essence: - connect a particular set of devices ("ConnectDevicesFromQemu") - if that fails, call EfiBootManagerConnectAll() - call EfiBootManagerRefreshAllBootOption() - register UEFI Shell boot option manually - filter and reorder boot options in a platform specific way ("RemoveStaleFvFileOptions", "SetBootOrderFromQemu") All this happens in PlatformBootManagerAfterConsole(). Thanks, Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49963): https://edk2.groups.io/g/devel/message/49963 Mute This Topic: https://groups.io/mt/39747302/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-