summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-03 14:50:58 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-03 14:50:58 +0000
commit27bc62c820b056c6d771b0fbbb085f07b38eb7ac (patch)
tree25fbd7858270ba82f749b6c02c4cdcf01fb1678a
parenta327af363f1b0b10f1a6332da1ad62e52598f237 (diff)
downloaddrakx-27bc62c820b056c6d771b0fbbb085f07b38eb7ac.tar
drakx-27bc62c820b056c6d771b0fbbb085f07b38eb7ac.tar.gz
drakx-27bc62c820b056c6d771b0fbbb085f07b38eb7ac.tar.bz2
drakx-27bc62c820b056c6d771b0fbbb085f07b38eb7ac.tar.xz
drakx-27bc62c820b056c6d771b0fbbb085f07b38eb7ac.zip
differentiate no floppy disk in driver or ext2 fs
-rw-r--r--mdk-stage1/modules.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 4f2214920..f33224cd6 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -107,8 +107,11 @@ static enum return_type ensure_additional_modules_available(void)
my_insmod("floppy", ANY_DRIVER_TYPE, NULL, 0);
while (my_mount("/dev/fd0", floppy_mount_location, "ext2", 0) == -1) {
- enum return_type results = ask_yes_no("I can't find a Linux ext2 floppy in first floppy drive.\n"
- "Retry?");
+ enum return_type results = ask_yes_no(errno == ENXIO ?
+ "There is no detected floppy drive, or no floppy disk in drive.\nRetry?"
+ : errno == EINVAL ?
+ "Floppy is not a Linux ext2 floppy in first floppy drive.\nRetry?"
+ : "Can't find a linux ext2 floppy in first floppy drive.\nRetry?");
if (results != RETURN_OK) {
allow_additional_modules_floppy = 0;
return results;