From 7aab173af2151843199dc229641f643538c8c161 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 30 Jul 2001 13:28:18 +0000 Subject: have a memory limit also for Rescue (different one) --- mdk-stage1/stage1.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mdk-stage1/stage1.c') diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index e06bf99a1..df297ead8 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -388,6 +388,13 @@ int main(int argc, char **argv, char **env) stg1_info_message("You are starting the installation with an alternate booting method. " "Please change your disk, and insert the Installation disk."); + if (IS_RESCUE && total_memory() < MEM_LIMIT_RESCUE) { + stg1_error_message("You are starting the rescue with a low memory configuration. " + "From that point, experience showed us that the program may stop " + "or crash at any point without immediate proper reason. Continue at " + "your own risk. Alternatively, you may reboot your system now."); + } + ret = method_select_and_prepare(); finish_frontend(); -- cgit v1.2.1