forked from pool/parted
- Drop using deprecated configure option "--disable-Werror" - Drop (SUSE specific) support for hybrid pMBR (gpt_sync_mbr label) (fate#317849, bsc#1041322) - remove: parted-gpt-mbr-sync.patch - remove: libparted-ppc-prepboot-in-syncmbr.patch - remove: parted-workaround-windows7-gpt-implementation.patch - refresh patches - libparted: Fix starting CHS in protective MBR (bsc#969165) - add: libparted-fix-starting-CHS-in-protective-MBR.patch OBS-URL: https://build.opensuse.org/request/show/519106 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=132
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From: Petr Uzel <petr.uzel@suse.cz>
|
|
Date: Thu, 10 Mar 2016 14:18:52 +0100
|
|
Subject: libparted: Fix starting CHS in protective MBR
|
|
References: bsc#969165
|
|
Patch-mainline: v3.3
|
|
Git-commit: df6770d213b60320426a3ee0bed118d063b40fc5
|
|
|
|
The CHS address for protective partition start in protective MBR
|
|
should be 0/0/2, according to UEFI spec (v2.6, section 5.2.1).
|
|
|
|
* libparted/labels/gpt.c (_write_pmbr): Fix starting CHS address
|
|
|
|
Reported by Steffen Winterfeldt in https://bugzilla.suse.com/969165
|
|
|
|
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
|
|
---
|
|
libparted/labels/gpt.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/libparted/labels/gpt.c
|
|
+++ b/libparted/labels/gpt.c
|
|
@@ -1143,7 +1143,7 @@ _write_pmbr (PedDevice *dev, bool pmbr_b
|
|
|
|
pmbr->Signature = PED_CPU_TO_LE16 (MSDOS_MBR_SIGNATURE);
|
|
pmbr->PartitionRecord[0].OSType = EFI_PMBR_OSTYPE_EFI;
|
|
- pmbr->PartitionRecord[0].StartSector = 1;
|
|
+ pmbr->PartitionRecord[0].StartSector = 2;
|
|
pmbr->PartitionRecord[0].EndHead = 0xFE;
|
|
pmbr->PartitionRecord[0].EndSector = 0xFF;
|
|
pmbr->PartitionRecord[0].EndTrack = 0xFF;
|