summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-03-23 22:16:35 -0500
committerDavid Lehman <dlehman@redhat.com>2009-03-23 22:17:17 -0500
commitfaee0d96c7a213acfa4edcba198ad4a398110282 (patch)
tree2ae039ceea6a481ae3ccec84df2fb1dd6b16bd6a /platform.py
parent3b1206629309d766fc25d529ae3145c9532c8977 (diff)
downloadanaconda-faee0d96c7a213acfa4edcba198ad4a398110282.tar.gz
anaconda-faee0d96c7a213acfa4edcba198ad4a398110282.tar.xz
anaconda-faee0d96c7a213acfa4edcba198ad4a398110282.zip
Add EFI, Apple Bootstrap, and PPC PReP Boot formats.
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/platform.py b/platform.py
index f1a20a471..59b87273b 100644
--- a/platform.py
+++ b/platform.py
@@ -170,8 +170,8 @@ class EFI(Platform):
if not req.format.type.startswith("ext"):
raise FSError("/boot is not ext2")
elif req.format.mountpoint == "/boot/efi":
- if not req.format.type.endswith("fat"):
- raise FSError("/boot/efi is not vfat")
+ if req.format.type != "efi":
+ raise FSError("/boot/efi is not efi")
def setDefaultPartitioning(self):
ret = Platform.setDefaultPartitioning(self)
@@ -236,7 +236,7 @@ class IPSeriesPPC(PPC):
# We want the first PReP partition.
for device in self.anaconda.id.storage.partitions:
- if device.partedPartition.getFlag(parted.PARTITION_PREP):
+ if device.format.type == "prepboot":
bootDev = device
break
@@ -279,9 +279,10 @@ class NewWorldPPC(PPC):
bootDev = None
for part in self.anaconda.id.storage.partitions:
- # XXX do we need to also check the size?
- if part.format.type == "hfs" and self.validBootPartSize(part.size):
+ if part.format.type == "appleboot" and self.validBootPartSize(part.size):
bootDev = part
+ # if we're only picking one, it might as well be the first
+ break
return bootDev
@@ -298,7 +299,7 @@ class NewWorldPPC(PPC):
else:
ret["boot"] = (bootDev.name, N_("Apple Bootstrap"))
for (n, device) in enumerate(self.anaconda.id.storage.partitions):
- if device.format.type == "hfs" and device.bootable and device.path != bootDev.path:
+ if device.format.type == "appleboot" and device.path != bootDev.path:
ret["boot%d" % n] = (device.path, N_("Apple Bootstrap"))
return ret