summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/stage1.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/stage1.c')
-rw-r--r--mdk-stage1/stage1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 618f393c7..8f92e7f98 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -588,6 +588,9 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
}
#ifdef MANDRAKE_MOVE
+ if (total_memory() < MEM_LIMIT_MOVE)
+ stg1_error_message(DISTRIB_NAME " typically needs more than %d Mbytes of memory (detected %d Mbytes). You may proceed, but the machine may crash or lock up for no apparent reason. Continue at your own risk. Alternatively, you may reboot your system now.",
+ MEM_LIMIT_MOVE, total_memory());
if (mandrake_move_pre() != RETURN_OK)
stg1_error_message("Fatal error when preparing Mandrake Move.");
#endif