summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-01-22 12:49:31 -0500
committerBill Nottingham <notting@redhat.com>2008-01-22 12:49:31 -0500
commitba3000c46981d6fab66a64b8d3af71cf51de2075 (patch)
treebe3ceef52e1d4e091d9d0743d4a8bfb314f00da4 /isys/isys.py
parent53dba83b7e62c4b61f9551cc5c4e5236e5d1f244 (diff)
downloadanaconda-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-xisys/isys.py5
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'):