summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-09-16 13:59:42 -0400
committerChris Lumens <clumens@redhat.com>2009-09-16 16:12:11 -0400
commit7c89e1e0be0cb6d79ccf5148feb725a20bf4a253 (patch)
tree8422797a0faab70bf4b8963d27763272e7435baa /platform.py
parent4fd79c46a0c7757d2e3596248563a821e6c44dc6 (diff)
downloadanaconda-7c89e1e0be0cb6d79ccf5148feb725a20bf4a253.tar.gz
anaconda-7c89e1e0be0cb6d79ccf5148feb725a20bf4a253.tar.xz
anaconda-7c89e1e0be0cb6d79ccf5148feb725a20bf4a253.zip
Check whatever contains /boot on PPC as well as the bootable part (#523747).
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/platform.py b/platform.py
index 072efe5e5..37b3796da 100644
--- a/platform.py
+++ b/platform.py
@@ -333,7 +333,17 @@ class IPSeriesPPC(PPC):
if bootPart.geometry.end * bootPart.geometry.device.sectorSize / (1024.0 * 1024) > 4096:
errors.append(_("The boot partition must be within the first 4MB of the disk."))
- return errors
+ # All of the above just checks the PPC PReP boot partitions. We still
+ # need to make sure that whatever /boot is on also meets these criteria.
+ if req == self.bootDevice():
+ try:
+ req = self.anaconda.id.storage.mountpoints["/boot"]
+ except KeyError:
+ req = self.anaconda.id.storage.rootDevice
+
+ return errors + self.checkBootRequest(req)
+ else:
+ return errors
def setDefaultPartitioning(self):
ret = PPC.setDefaultPartitioning(self)
@@ -395,7 +405,17 @@ class NewWorldPPC(PPC):
if not disk.type == self.diskType.name:
errors.append(_("%s must have a mac disk label.") % req.disk.name)
- return errors
+ # All of the above just checks the appleboot partitions. We still
+ # need to make sure that whatever /boot is on also meets these criteria.
+ if req == self.bootDevice():
+ try:
+ req = self.anaconda.id.storage.mountpoints["/boot"]
+ except KeyError:
+ req = self.anaconda.id.storage.rootDevice
+
+ return errors + self.checkBootRequest(req)
+ else:
+ return errors
def setDefaultPartitioning(self):
ret = Platform.setDefaultPartitioning(self)