From a77fe688cd9c8c4efb8b9c363a7078e7a563f0bb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 2 Nov 2004 13:45:26 +0000 Subject: compile less things when MANDRAKE_MOVE is defined (needed so that future commits can restrict define's in config-stage1.h) --- mdk-stage1/stage1.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mdk-stage1/stage1.c') diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 57477d198..03cd10515 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -363,12 +363,14 @@ static void method_select_and_prepare(void) #ifndef DISABLE_NETWORK if (!strcmp(choice, network_nfs_install)) results = nfs_prepare(); - + +#ifndef MANDRAKE_MOVE if (!strcmp(choice, network_ftp_install)) results = ftp_prepare(); if (!strcmp(choice, network_http_install)) results = http_prepare(); +#endif #endif if (results != RETURN_OK) @@ -648,19 +650,21 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) if (total_memory() < MEM_LIMIT_MOVE) stg1_info_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()); -#endif - +#else #ifndef DISABLE_DISK if (IS_RECOVERY && streq(get_auto_value("method"), "cdrom")) { if (!process_recovery()) method_select_and_prepare(); } else +#endif #endif method_select_and_prepare(); +#ifndef MANDRAKE_MOVE if (!IS_RAMDISK) if (symlink(IMAGE_LOCATION_REAL LIVE_LOCATION, STAGE2_LOCATION) != 0) log_perror("symlink from " IMAGE_LOCATION_REAL LIVE_LOCATION " to " STAGE2_LOCATION " failed"); +#endif if (interactive_pid != 0) kill(interactive_pid, 9); -- cgit v1.2.1