[Gptfdisk-general] [PATCH] Fix creating of two 0xEE partitions in hybrid MBR
Brought to you by:
srs5694
From: Kirill E. <kir...@gm...> - 2012-06-15 17:15:46
|
This makes gfdisk create two protective EFI GPT partitions with eeFirst='N' if user hybridized less than three partitions. --- gpttext.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpttext.cc b/gpttext.cc index 506c0f1..474b23b 100644 --- a/gpttext.cc +++ b/gpttext.cc @@ -452,7 +452,7 @@ void GPTDataTextUI::MakeHybrid(void) { if (eeFirst == 'Y') { hybridMBR.AddPart(0, hybridPart); } else { - hybridMBR.AddPart(3, hybridPart); + hybridMBR.AddPart(numPartsToCvt, hybridPart); } // else hybridMBR.SetHybrid(); -- 1.7.9.2 -- Кирилл Елагин |