mirror of https://github.com/acidanthera/audk.git
Do not create boot option for logical block io device.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Elvin Li <elvin.li@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15575 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a618eaa1f4
commit
7d84fbbb5e
|
@ -3219,9 +3219,16 @@ BdsLibEnumerateAllBootOption (
|
|||
(VOID **) &BlkIo
|
||||
);
|
||||
//
|
||||
// skip the fixed block io then the removable block io
|
||||
// skip the logical partition
|
||||
//
|
||||
if (EFI_ERROR (Status) || (BlkIo->Media->RemovableMedia == Removable[RemovableIndex])) {
|
||||
if (EFI_ERROR (Status) || BlkIo->Media->LogicalPartition) {
|
||||
continue;
|
||||
}
|
||||
|
||||
//
|
||||
// firstly fixed block io then the removable block io
|
||||
//
|
||||
if (BlkIo->Media->RemovableMedia == Removable[RemovableIndex]) {
|
||||
continue;
|
||||
}
|
||||
DevicePath = DevicePathFromHandle (BlockIoHandles[Index]);
|
||||
|
|
Loading…
Reference in New Issue