diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-01-31 09:37:38 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-02-01 17:20:42 +0100 |
commit | 5da2d31003c2d79c6faa6b6b1d60fb80d030b4a9 (patch) | |
tree | deb7da12022290412e7eec8ad7051b131e079862 | |
parent | fd9d8c2afdeffe1268e745396819faa6ae48e642 (diff) | |
download | anaconda-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__.py | 2 |
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 |