summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-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;