Auto-generated boot options
The code for auto-generated boot options has some issues:
- boot options should be created for devices not for partitions
- auto-generation of boot options is only mandated if a boot options with short-form File Path Media Device Path is hit.
- removable media should be enumerated before non-removable media. This probably needs to be observed for the default File Path Media Device Paths (e.g. "EFI\BOOT\BOOTRISCV64.EFI"), too.
See this sentence in the UEFI specification:
"When the boot manager attempts to boot a short-form File Path Media Device Path, it will enumerate all removable media devices, followed by all fixed media devices, creating boot options for each device."
Edited by Heinrich Schuchardt