diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-06 23:54:35 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-06 23:54:35 +0000 |
commit | 5373b400c753d70e052d23eb4257b92862aa77e3 (patch) | |
tree | 09a8b1acd66ea33c52d72a3d54ade3131efa873a /fsset.py | |
parent | eee60d6d6dc557013609b18e2c729b01a3d2c351 (diff) | |
download | anaconda-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |