summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2005-02-19 17:36:27 +0000
committerPaul Nasrat <pnasrat@redhat.com>2005-02-19 17:36:27 +0000
commit2b60cb5f72d1674bef3f9a89538c46904560f08b (patch)
tree8a0a634af59c2a38182191d5ea9b1621c25db055 /partitions.py
parent987b7da8ddcbc1f6eb94aa8f1e0c3610ae3db7d9 (diff)
downloadanaconda-2b60cb5f72d1674bef3f9a89538c46904560f08b.tar.gz
anaconda-2b60cb5f72d1674bef3f9a89538c46904560f08b.tar.xz
anaconda-2b60cb5f72d1674bef3f9a89538c46904560f08b.zip
Fedora PPC - autopartitioning (#121266) and G5 (#149081)
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py
index 84906951d..1f0a7576d 100644
--- a/partitions.py
+++ b/partitions.py
@@ -616,6 +616,11 @@ class Partitions:
return [ bootreq ]
else:
return None
+ elif iutil.getPPCMachine() == "PMac":
+ for req in self.requests:
+ if req.fstype == fsset.fileSystemTypeGet("Apple Bootstrap"):
+ return [ req ]
+ return None
elif iutil.getPPCMachine() == "iSeries":
for req in self.requests:
if req.fstype == fsset.fileSystemTypeGet("PPC PReP Boot"):
@@ -797,6 +802,25 @@ class Partitions:
errors.append(_("You must create a /boot/efi partition of "
"type FAT and a size of 50 megabytes."))
+ if iutil.getPPCMacGen() == "NewWorld":
+ reqs = self.getBootableRequest()
+ found = 0
+
+ bestreq = None
+ if reqs:
+ for req in reqs:
+ if req.fstype == fsset.fileSystemTypeGet("Apple Bootstrap"):
+ found = 1
+ # the best one is either the first or the first
+ # newly formatted one
+ if ((bestreq is None) or ((bestreq.format == 0) and
+ (req.format == 1))):
+ bestreq = req
+ break
+
+ if not found:
+ errors.append(_("You must create an Apple Bootstrap partition."))
+
if (iutil.getPPCMachine() == "pSeries" or
iutil.getPPCMachine() == "iSeries"):
reqs = self.getBootableRequest()