summaryrefslogtreecommitdiff
path: root/user/horizon/ppc32-apm.patch
blob: caa5d318949a1bbf40f5e4ceff9b3225dbb0475d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 02bab111a473e6bc45c4c95e8f17634b42e0fba9 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Sat, 21 Dec 2024 19:18:53 -0600
Subject: [PATCH] Qt UI: Count APM partitions correctly on PPC32

The fix we did in 5df1abdb74 is not complete; we use APM on 32-bit
PowerPC machines as well.  We need to do the same workaround on PPC32
that we do on PPC64 Power Macs.

Fixes: 5df1abdb74 ("Qt UI: Fix partition count for APM disklabel")
---
 ui/qt5/horizonwizard.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index 81ddcdc..9cc0690 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -409,6 +409,7 @@ QStringList eraseDiskForArch(const std::string &raw_disk,
     case HorizonWizard::x86_64: /* 64-bit Intel uses GPT */
         return {QString{"disklabel %1 gpt"}.arg(disk)};
     case HorizonWizard::ppc:    /* 32-bit PowerPC: we only support Power Mac */
+        (*start)++;
         return {QString{"disklabel %1 apm"}.arg(disk)};
     case HorizonWizard::ppc64:  /* Complicated */
         switch(subarch) {
-- 
2.40.0