From: Ruiyu Ni Date: Fri, 20 Jun 2014 06:17:54 +0000 (+0000) Subject: Do not create boot option for logical block io device. X-Git-Tag: edk2-stable201903~11417 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7d84fbbb5e504002646e17746dbb79a6f33d5f14 Do not create boot option for logical block io device. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15575 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c index b41ce79d50..f816d4c39e 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c @@ -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]);