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:
Ruiyu Ni 2014-06-20 06:17:54 +00:00 committed by niruiyu
parent a618eaa1f4
commit 7d84fbbb5e
1 changed files with 9 additions and 2 deletions

View File

@ -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]);