summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/probing.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-11 15:10:33 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-11 15:10:33 +0000
commit75dbadee24b0bd6b738093b66f8415a630692671 (patch)
tree8c2b03dddfa8d55dab163bf035f2d7e595a7eb70 /mdk-stage1/probing.c
parentd7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f (diff)
downloaddrakx-75dbadee24b0bd6b738093b66f8415a630692671.tar
drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar.gz
drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar.bz2
drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar.xz
drakx-75dbadee24b0bd6b738093b66f8415a630692671.zip
week-end stuff: now supports second stage as a ramdisk
adds better device files handling (some in initrd, others dynamically created) better logging of detected IDE and SCSI devices
Diffstat (limited to 'mdk-stage1/probing.c')
-rw-r--r--mdk-stage1/probing.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index e2bd61aae..0a012ad95 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -47,7 +47,7 @@ static void pci_probing(enum driver_type type)
if (IS_EXPERT) {
error_message("You should be asked if you have some SCSI.");
} else {
- wait_message("Installing SCSI module...");
+ wait_message("Installing SCSI module..."); sleep(1);
remove_wait_message();
}
}
@@ -127,11 +127,11 @@ static void find_media(void)
tmp[count].model = strdup(buf);
}
+ log_message("IDE/%d: %s is a %s", tmp[count].type, tmp[count].name, tmp[count].model);
tmp[count].bus = IDE;
count++;
}
- log_message("found %d IDE media", count);
/* ----------------------------------------------- */
@@ -215,7 +215,7 @@ static void find_media(void)
while (*chptr == ' ') chptr--;
*(chptr + 1) = '\0';
- strcat(tmp_model, ", ");
+ strcat(tmp_model, " ");
strcat(tmp_model, start);
tmp[count].model = strdup(tmp_model);
@@ -242,6 +242,7 @@ static void find_media(void)
if (*tmp_name) {
tmp[count].name = strdup(tmp_name);
+ log_message("SCSI/%d: %s is a %s", tmp[count].type, tmp[count].name, tmp[count].model);
tmp[count].bus = SCSI;
count++;
}
@@ -255,8 +256,6 @@ static void find_media(void)
end_scsi:
}
- log_message("adding SCSI totals %d media", count);
-
/* ----------------------------------------------- */
tmp[count].name = NULL;