2012-09-27 13:49:43 +00:00
|
|
|
bnc#781688
|
2014-05-07 09:41:13 +00:00
|
|
|
---
|
|
|
|
libparted/labels/gpt.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
Index: parted-3.1/libparted/labels/gpt.c
|
2012-09-27 13:49:43 +00:00
|
|
|
===================================================================
|
2014-05-07 09:41:13 +00:00
|
|
|
--- parted-3.1.orig/libparted/labels/gpt.c
|
|
|
|
+++ parted-3.1/libparted/labels/gpt.c
|
|
|
|
@@ -489,7 +489,7 @@ _has_hybrid_pmbr (const PedDevice *dev)
|
2012-09-27 13:49:43 +00:00
|
|
|
|
|
|
|
if ((mbr.PartitionRecord[0].OSType == EFI_PMBR_OSTYPE_EFI) &&
|
|
|
|
(mbr.PartitionRecord[0].StartingLBA == PED_CPU_TO_LE32(1)) &&
|
|
|
|
- (mbr.PartitionRecord[0].SizeInLBA == PED_CPU_TO_LE32(efi_gpt_expected_size)))
|
|
|
|
+ ((mbr.PartitionRecord[0].SizeInLBA == PED_CPU_TO_LE32(efi_gpt_expected_size)) || (mbr.PartitionRecord[0].SizeInLBA == PED_CPU_TO_LE32(0xFFFFFFFF))))
|
|
|
|
/* pMBR is not hybrid */
|
|
|
|
has_hybrid_pmbr = 0;
|
|
|
|
|