summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-03-18 13:40:14 -0400
committerJeremy Katz <katzj@redhat.com>2008-03-18 13:40:56 -0400
commitb52e31f978edd6159eeee87784c134e315b57361 (patch)
treeeafc9011875fd90581b876ee73fa8415526fed42 /autopart.py
parent0af7118d1d9e1df878cdeee8bd47d17edc7a1b1c (diff)
downloadanaconda-b52e31f978edd6159eeee87784c134e315b57361.tar.gz
anaconda-b52e31f978edd6159eeee87784c134e315b57361.tar.xz
anaconda-b52e31f978edd6159eeee87784c134e315b57361.zip
Fix up ppc boot check (#438005)
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/autopart.py b/autopart.py
index 983cf10c7..9b021317d 100644
--- a/autopart.py
+++ b/autopart.py
@@ -84,11 +84,10 @@ def bootRequestCheck(req, diskset):
return bootAlphaCheckRequirements(part)
elif (iutil.getPPCMachine() == "pSeries" or
iutil.getPPCMachine() == "iSeries"):
- for req in reqs:
- part = partedUtils.get_partition_by_name(diskset.disks, req.device)
- if part and ((part.geom.end * part.geom.dev.sector_size /
- (1024.0 * 1024)) > 4096):
- return BOOTIPSERIES_TOO_HIGH
+ part = partedUtils.get_partition_by_name(diskset.disks, req.device)
+ if part and ((part.geom.end * part.geom.dev.sector_size /
+ (1024.0 * 1024)) > 4096):
+ return BOOTIPSERIES_TOO_HIGH
return PARTITION_SUCCESS