summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rescue.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/rescue.py b/rescue.py
index 33084c626..bc95d6dbd 100644
--- a/rescue.py
+++ b/rescue.py
@@ -75,16 +75,7 @@ def runRescue(instPath, mountroot, id):
os.execv("/bin/sh", [ "-/bin/sh" ])
# lets create some devices
- for drive in isys.hardDriveDict().keys():
- isys.makeDevInode(drive, "/dev/" + drive)
-
- for i in range(16):
- if drive [:3] == "rd/" or drive [:4] == "ida/" or drive [:6] == "cciss/":
- dev = drive + 'p' + str (i + 1)
- else:
- dev = drive + str (i + 1)
-
- isys.makeDevInode(dev, "/dev/" + dev)
+ iutil.makeDriveDeviceNodes()
# need loopback devices too
for lpminor in range(8):