diff options
author | Bill Nottingham <notting@redhat.com> | 2008-01-22 12:49:31 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-01-22 12:49:31 -0500 |
commit | ba3000c46981d6fab66a64b8d3af71cf51de2075 (patch) | |
tree | be3ceef52e1d4e091d9d0743d4a8bfb314f00da4 /isys/isys.py | |
parent | 53dba83b7e62c4b61f9551cc5c4e5236e5d1f244 (diff) | |
download | anaconda-ba3000c46981d6fab66a64b8d3af71cf51de2075.tar.gz anaconda-ba3000c46981d6fab66a64b8d3af71cf51de2075.tar.xz anaconda-ba3000c46981d6fab66a64b8d3af71cf51de2075.zip |
When starting RAID arrays, the device node may not already exist.
Fudge the minor number.
Diffstat (limited to 'isys/isys.py')
-rwxr-xr-x | isys/isys.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py index 15a2837d3..6a2e2156e 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -183,7 +183,10 @@ def raidstart(mdDevice, aMember): mdInode = "/dev/%s" % mdDevice mbrInode = "/dev/%s" % aMember - minor = os.minor(os.stat(mdInode).st_rdev) + if os.path.exists(mdInode): + minor = os.minor(os.stat(mdInode).st_rdev) + else: + minor = int(mdDevice[2:]) try: info = _getRaidInfo(mbrInode) if info.has_key('mdMinor'): |