]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
MdeModulePkg/PartitionDxe: Put the UDF check ahead of MBR
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / PartitionDxe / Partition.c
index 6a43c3cafb23c15130beefd85c41915b20943eab..473e0913200ca0a4d1157c76df6c934edae13019 100644 (file)
@@ -35,11 +35,19 @@ EFI_DRIVER_BINDING_PROTOCOL gPartitionDriverBinding = {
 \r
 //\r
 // Prioritized function list to detect partition table.\r
+// Refer to UEFI Spec 13.3.2 Partition Discovery, the block device\r
+// should be scanned in below order:\r
+// 1. GPT\r
+// 2. ISO 9660 (El Torito) (or UDF)\r
+// 3. MBR\r
+// 4. no partiton found\r
+// Note: UDF is using a same method as booting from CD-ROM, so put it along\r
+//        with CD-ROM check.\r
 //\r
 PARTITION_DETECT_ROUTINE mPartitionDetectRoutineTable[] = {\r
   PartitionInstallGptChildHandles,\r
-  PartitionInstallMbrChildHandles,\r
   PartitionInstallUdfChildHandles,\r
+  PartitionInstallMbrChildHandles,\r
   NULL\r
 };\r
 \r