summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-07-27 15:56:05 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-07-27 15:56:05 +0000
commit9e59aa5ab94b40986be1f3a3bd74b8056c7b48cb (patch)
tree7bda4a85d74603dce396afa7b01f37264e6e19af
parentea4e11187b9a5acdb4a0e29280393ba7d97e3bad (diff)
downloaddrakx-9e59aa5ab94b40986be1f3a3bd74b8056c7b48cb.tar
drakx-9e59aa5ab94b40986be1f3a3bd74b8056c7b48cb.tar.gz
drakx-9e59aa5ab94b40986be1f3a3bd74b8056c7b48cb.tar.bz2
drakx-9e59aa5ab94b40986be1f3a3bd74b8056c7b48cb.tar.xz
drakx-9e59aa5ab94b40986be1f3a3bd74b8056c7b48cb.zip
allow to escape from Update Modules if you don't want to insert an ext2 floppy
-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 a699f24f4..8d2825993 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -391,8 +391,11 @@ void update_modules(void)
my_insmod("floppy", ANY_DRIVER_TYPE, NULL);
if (my_mount("/dev/fd0", floppy_mount_location, "ext2") == -1) {
- stg1_error_message("I can't find a Linux ext2 floppy in first floppy drive.");
- return update_modules();
+ enum return_type results = ask_yes_no("I can't find a Linux ext2 floppy in first floppy drive.\n"
+ "Retry?");
+ if (results == RETURN_OK)
+ return update_modules();
+ return;
}
disk_contents = list_directory(floppy_mount_location);