summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-01-31 09:37:38 +0100
committerHans de Goede <hdegoede@redhat.com>2010-02-01 17:20:42 +0100
commit5da2d31003c2d79c6faa6b6b1d60fb80d030b4a9 (patch)
treedeb7da12022290412e7eec8ad7051b131e079862
parentfd9d8c2afdeffe1268e745396819faa6ae48e642 (diff)
downloadanaconda-5da2d31003c2d79c6faa6b6b1d60fb80d030b4a9.tar.gz
anaconda-5da2d31003c2d79c6faa6b6b1d60fb80d030b4a9.tar.xz
anaconda-5da2d31003c2d79c6faa6b6b1d60fb80d030b4a9.zip
Fix backtrace when adding mdraid arrays (#560360)
When doing custom partitioning, and adding an mdraid array, and a pre-existing array has a minor > 32, we will back trace, this patch fixes this.
-rw-r--r--storage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/__init__.py b/storage/__init__.py
index adbcd4d16..a808acda6 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -549,7 +549,7 @@ class Storage(object):
""" Return a list of unused minors for use in RAID. """
raidMinors = range(0,32)
for array in self.mdarrays + self.mdcontainers:
- if array.minor is not None:
+ if array.minor is not None and array.minor in raidMinors:
raidMinors.remove(array.minor)
return raidMinors