summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iutil.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index 80c3a0cb1..9e3d07221 100644
--- a/iutil.py
+++ b/iutil.py
@@ -402,8 +402,14 @@ def makeDriveDeviceNodes():
else:
num = 15
+ if (drive.startswith("cciss") or drive.startswith("ida") or
+ drive.startswith("rd")):
+ sep = "p"
+ else:
+ sep = ""
+
for i in range(1, num):
- dev = "%s%d" % (drive, i)
+ dev = "%s%s%d" % (drive, sep, i)
isys.makeDevInode(dev, "/dev/%s" % (dev,))
cdroms = isys.cdromList()