summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-12-21 19:18:53 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-12-21 19:18:53 -0600
commit02bab111a473e6bc45c4c95e8f17634b42e0fba9 (patch)
tree16df0cce5eceeeff0e8a1a7694adcdc9bc307f97
parentb691629b852db3b7f071a07570bc5a0c38e981a4 (diff)
downloadhorizon-02bab111a473e6bc45c4c95e8f17634b42e0fba9.tar.gz
horizon-02bab111a473e6bc45c4c95e8f17634b42e0fba9.tar.bz2
horizon-02bab111a473e6bc45c4c95e8f17634b42e0fba9.tar.xz
horizon-02bab111a473e6bc45c4c95e8f17634b42e0fba9.zip
Qt UI: Count APM partitions correctly on PPC32HEADcurrent
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")
-rw-r--r--ui/qt5/horizonwizard.cc1
1 files changed, 1 insertions, 0 deletions
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) {