From 27bc62c820b056c6d771b0fbbb085f07b38eb7ac Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 3 Feb 2004 14:50:58 +0000 Subject: differentiate no floppy disk in driver or ext2 fs --- mdk-stage1/modules.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mdk-stage1') 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; -- cgit v1.2.1