From ecc78994996036ec5e907d596dd3d7c27fd9ce3c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 25 Jun 2004 08:36:35 +0000 Subject: do not use ramdisk in nfs install --- mdk-stage1/directory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/directory.c') diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c index 0e6caeb52..d572cd800 100644 --- a/mdk-stage1/directory.c +++ b/mdk-stage1/directory.c @@ -127,6 +127,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me } #endif + loopdev = NULL; if (!stat(location_full, &statbuf) && !S_ISDIR(statbuf.st_mode)) { log_message("%s exists and is not a directory, assuming this is an ISO image", location_full); if (lomount(location_full, IMAGE_LOCATION, &loopdev, 0)) { @@ -141,7 +142,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me add_to_env("METHOD", method_live); } #ifndef MANDRAKE_MOVE - if (IS_SPECIAL_STAGE2 || ramdisk_possible()) { + if (IS_SPECIAL_STAGE2 || ((loopdev || !streq(method_live, "nfs")) && ramdisk_possible()))) { /* RAMDISK install */ if (access(IMAGE_LOCATION RAMDISK_LOCATION, R_OK)) { stg1_error_message("I can't find the " DISTRIB_NAME " Distribution in the specified directory. " -- cgit v1.2.1