summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-06 23:54:35 +0000
committerMatt Wilson <msw@redhat.com>2001-07-06 23:54:35 +0000
commit5373b400c753d70e052d23eb4257b92862aa77e3 (patch)
tree09a8b1acd66ea33c52d72a3d54ade3131efa873a /fsset.py
parenteee60d6d6dc557013609b18e2c729b01a3d2c351 (diff)
downloadanaconda-5373b400c753d70e052d23eb4257b92862aa77e3.tar.gz
anaconda-5373b400c753d70e052d23eb4257b92862aa77e3.tar.xz
anaconda-5373b400c753d70e052d23eb4257b92862aa77e3.zip
don't fall over on the first pass of minor allocation
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index f8845ca8b..7cd278487 100644
--- a/fsset.py
+++ b/fsset.py
@@ -845,9 +845,10 @@ class RAIDDevice(Device):
if not RAIDDevice.usedMajors.has_key(I):
minor = I
break
+
+ if minor == -1:
raise RuntimeError, ("Unable to allocate minor number for "
"raid device")
- minor = I
RAIDDevice.usedMajors[minor] = None
self.device = "md" + str(minor)
self.minor = minor