Skip volumes that do not have an EFI volume
This commit is contained in:
@ -3277,6 +3277,13 @@ BdsLibEnumerateAllBootOption (
|
|||||||
DevicePath = DevicePathFromHandle (BlockIoHandles[Index]);
|
DevicePath = DevicePathFromHandle (BlockIoHandles[Index]);
|
||||||
DevicePathType = BdsGetBootTypeFromDevicePath (DevicePath);
|
DevicePathType = BdsGetBootTypeFromDevicePath (DevicePath);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Skip devices that do not have an EFI volume
|
||||||
|
//
|
||||||
|
if (BdsLibGetBootableHandle (DevicePath) == NULL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Do NVMe devices first, all others second
|
// Do NVMe devices first, all others second
|
||||||
if (DPTIndex == 0) {
|
if (DPTIndex == 0) {
|
||||||
if (DevicePathType != BDS_EFI_MESSAGE_NVME_BOOT) {
|
if (DevicePathType != BDS_EFI_MESSAGE_NVME_BOOT) {
|
||||||
|
Reference in New Issue
Block a user