summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-09-04 19:23:22 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-09-04 19:23:22 +0000
commit58df668238a2747743cc836c6d7dffc14c85ddbd (patch)
tree58d4269ced3a29b35cc7436e407ffb676fde307c
parent9d0853ccb3a1668dc1a98ef52c48fadd4a968a80 (diff)
downloaddrakx-58df668238a2747743cc836c6d7dffc14c85ddbd.tar
drakx-58df668238a2747743cc836c6d7dffc14c85ddbd.tar.gz
drakx-58df668238a2747743cc836c6d7dffc14c85ddbd.tar.bz2
drakx-58df668238a2747743cc836c6d7dffc14c85ddbd.tar.xz
drakx-58df668238a2747743cc836c6d7dffc14c85ddbd.zip
reflect scd -> sr here too, /me sucks :-(
-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);