Blame SOURCES/0056-libparted-Fix-starting-CHS-in-protective-MBR.patch

0cb0b9
From ef6a998695636d81d7d24ad8ae7405b03bf75c2f Mon Sep 17 00:00:00 2001
0cb0b9
From: Petr Uzel <petr.uzel@suse.cz>
0cb0b9
Date: Thu, 10 Mar 2016 14:18:52 +0100
0cb0b9
Subject: [PATCH 56/75] libparted: Fix starting CHS in protective MBR
0cb0b9
0cb0b9
The CHS address for protective partition start in protective MBR
0cb0b9
should be 0/0/2, according to UEFI spec (v2.6, section 5.2.1).
0cb0b9
0cb0b9
* libparted/labels/gpt.c (_write_pmbr): Fix starting CHS address
0cb0b9
0cb0b9
Reported by Steffen Winterfeldt in https://bugzilla.suse.com/969165
0cb0b9
0cb0b9
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
0cb0b9
---
0cb0b9
 libparted/labels/gpt.c | 2 +-
0cb0b9
 1 file changed, 1 insertion(+), 1 deletion(-)
0cb0b9
0cb0b9
diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c
0cb0b9
index d69377a..6027eb3 100644
0cb0b9
--- a/libparted/labels/gpt.c
0cb0b9
+++ b/libparted/labels/gpt.c
0cb0b9
@@ -1139,7 +1139,7 @@ _write_pmbr (PedDevice *dev, bool pmbr_boot)
0cb0b9
 
0cb0b9
   pmbr->Signature = PED_CPU_TO_LE16 (MSDOS_MBR_SIGNATURE);
0cb0b9
   pmbr->PartitionRecord[0].OSType = EFI_PMBR_OSTYPE_EFI;
0cb0b9
-  pmbr->PartitionRecord[0].StartSector = 1;
0cb0b9
+  pmbr->PartitionRecord[0].StartSector = 2;
0cb0b9
   pmbr->PartitionRecord[0].EndHead = 0xFE;
0cb0b9
   pmbr->PartitionRecord[0].EndSector = 0xFF;
0cb0b9
   pmbr->PartitionRecord[0].EndTrack = 0xFF;
0cb0b9
-- 
0cb0b9
2.9.3
0cb0b9