]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PartitionDxe: Skip the MBR that add for CD-ROM
authorZhichao Gao <zhichao.gao@intel.com>
Thu, 2 Jul 2020 01:03:12 +0000 (09:03 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Jul 2020 01:18:13 +0000 (01:18 +0000)
commite906346dcb80fce588ac774c8ec9694b62f0a257
tree9846ef8a638d50dd94ced8263c8bce0150c04e78
parenta35de0aff3e92c8584419720be199ccfff9b6a43
MdeModulePkg/PartitionDxe: Skip the MBR that add for CD-ROM

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2823

Refer to
http://manpages.ubuntu.com/manpages/bionic/man8/mkudffs.8.html.
Some Linux ISOs may have the MBR table for compatibility reasons
for Windows. The MBR tale would contain the partition entry with
start LBA0 and whole media size. There are two methods to check
the filesystem in the CD-ROM:
1. MBR partition check (Windows)
2. Whole disk check (MAC OS)

UEFI doesn't have the MBR check for UDF and Eltorito. But it may
pass the MBR check for such table and fail to detect the filesystem
of UDF. Skip the MBR check if the MBR is added for Windows
compatiblity so that the partition driver can continue UDF and
ElTorito check.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c