MdeModulePkg/PartitionDxe: Add partition type guid to installed handle

Add the partition type GUID for every partition to the installed handle,
this is required per the UEFI specification.

"The firmware must add the PartitionTypeGuid to the handle of every
active GPT partition using EFI_BOOT_SERVICES.InstallProtocolInterface()."

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jeff Brasen <jbrasen.qdt@qualcommdatacenter.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
Jeff Brasen
2018-03-26 16:57:04 +08:00
committed by Hao Wu
parent 0760ed06a1
commit 709c9fd56b
6 changed files with 38 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
/** @file
Scan for an UDF file system on a formatted media.
Copyright (c) 2018 Qualcomm Datacenter Technologies, Inc.
Copyright (C) 2014-2017 Paulo Alcantara <pcacjr@zytor.com>
This program and the accompanying materials are licensed and made available
@@ -753,7 +754,8 @@ PartitionInstallUdfChildHandles (
&PartitionInfo,
StartingLBA,
EndingLBA,
Media->BlockSize
Media->BlockSize,
NULL
);
if (EFI_ERROR (Status)) {
return (ChildCreated ? EFI_SUCCESS : Status);