summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/mount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c
index 8db04ddc0..b41604cfe 100644
--- a/mdk-stage1/mount.c
+++ b/mdk-stage1/mount.c
@@ -79,12 +79,13 @@ static int ensure_dev_exists(char *dev)
minor += 10 + (name[4] - '0');
else if (name[3])
minor += (name[3] - '0');
- } else if (name[0] == 's' && name[1] == 'c' && name[2] == 'd') {
+ } else if (name[0] == 's' && name[1] == 'r') {
/* SCSI cd's */
major = 11;
- minor = name[3] - '0';
+ minor = name[2] - '0';
} else if (ptr_begins_static_str(name, "ida/") ||
ptr_begins_static_str(name, "cciss/")) {
+ /* Compaq Smart Array */
char * ptr = strchr(name, '/');
mkdir("/dev/ida", 0755);
mkdir("/dev/cciss", 0755);