summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-13 14:00:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-13 14:00:21 +0000
commit878eb8b7626a6a31287e2051412b4a2019b4dff5 (patch)
tree19a8837d58d64b18b7a5825bef500a179338fa41
parent272515661cfd004a2e72fe9d66a40e144b0d797a (diff)
downloaddrakx-878eb8b7626a6a31287e2051412b4a2019b4dff5.tar
drakx-878eb8b7626a6a31287e2051412b4a2019b4dff5.tar.gz
drakx-878eb8b7626a6a31287e2051412b4a2019b4dff5.tar.bz2
drakx-878eb8b7626a6a31287e2051412b4a2019b4dff5.tar.xz
drakx-878eb8b7626a6a31287e2051412b4a2019b4dff5.zip
usb cdrom has a weird size in /proc/partitions, the result is that it is detected as floppy
-rw-r--r--mdk-stage1/probing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 515ba81f5..0a18f0233 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -569,7 +569,7 @@ static void find_media(enum media_bus bus)
int major, minor, blocks;
memset(name, 0, sizeof(name));
sscanf(buf, " %d %d %d %s", &major, &minor, &blocks, name);
- if (streq(name, tmp_name) && ((blocks == 1048575) || (blocks == 1440)))
+ if (streq(name, tmp_name) && tmp[count].type == DISK && ((blocks == 1048575) || (blocks == 1440)))
tmp[count].type = FLOPPY;
}
fclose(f);