diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-09-04 19:23:22 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-09-04 19:23:22 +0000 |
commit | 58df668238a2747743cc836c6d7dffc14c85ddbd (patch) | |
tree | 58d4269ced3a29b35cc7436e407ffb676fde307c | |
parent | 9d0853ccb3a1668dc1a98ef52c48fadd4a968a80 (diff) | |
download | drakx-backup-do-not-use-58df668238a2747743cc836c6d7dffc14c85ddbd.tar drakx-backup-do-not-use-58df668238a2747743cc836c6d7dffc14c85ddbd.tar.gz drakx-backup-do-not-use-58df668238a2747743cc836c6d7dffc14c85ddbd.tar.bz2 drakx-backup-do-not-use-58df668238a2747743cc836c6d7dffc14c85ddbd.tar.xz drakx-backup-do-not-use-58df668238a2747743cc836c6d7dffc14c85ddbd.zip |
reflect scd -> sr here too, /me sucks :-(
-rw-r--r-- | mdk-stage1/mount.c | 5 |
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); |