summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-21 14:02:49 -0400
committerChris Lumens <clumens@redhat.com>2009-05-21 14:02:49 -0400
commitdf5dcc3d822e38d5ed30e30df083a4ba1b7133f1 (patch)
tree3e25eec146cbba5ca79e581dc0c73ab3a6b08143 /platform.py
parent04f50e355c58ffd09b56a035e06bb4f4f92f3142 (diff)
downloadanaconda-df5dcc3d822e38d5ed30e30df083a4ba1b7133f1.tar.gz
anaconda-df5dcc3d822e38d5ed30e30df083a4ba1b7133f1.tar.xz
anaconda-df5dcc3d822e38d5ed30e30df083a4ba1b7133f1.zip
Check that /boot is on a Mac disk label for PPC installs (#497745).
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform.py b/platform.py
index bf6773cf1..db819f7a2 100644
--- a/platform.py
+++ b/platform.py
@@ -337,6 +337,17 @@ class NewWorldPPC(PPC):
return ret
+ def checkBootRequest(self, req):
+ disk = req.disk
+ if not disk:
+ raise DeviceError("Boot partition has no disk")
+
+ disk = disk.partedDisk
+
+ # Check that we're a Mac disk label
+ if not disk.type == self.diskType:
+ raise DeviceError("Disk label is not %s" % self.diskType.name)
+
def setDefaultPartitioning(self):
ret = Platform.setDefaultPartitioning(self)
ret.append(PartSpec(fstype="Apple Bootstrap", size=1, maxSize=1,