summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-04 08:35:47 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-04 08:35:47 +0000
commit2b36e577a2d1f12663d0568d03fda78083b176e4 (patch)
tree5e992e70590d1f0703c4313921a9cc11ca82b117 /mdk-stage1
parent44a257eb1cd8e437195c42dd42db45c3c4e70495 (diff)
downloaddrakx-2b36e577a2d1f12663d0568d03fda78083b176e4.tar
drakx-2b36e577a2d1f12663d0568d03fda78083b176e4.tar.gz
drakx-2b36e577a2d1f12663d0568d03fda78083b176e4.tar.bz2
drakx-2b36e577a2d1f12663d0568d03fda78083b176e4.tar.xz
drakx-2b36e577a2d1f12663d0568d03fda78083b176e4.zip
prefer to use a ramdisk for disk installs
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c
index d827e368f..b04895f00 100644
--- a/mdk-stage1/directory.c
+++ b/mdk-stage1/directory.c
@@ -143,7 +143,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 || (loopdev && ramdisk_possible())) {
+ if (IS_SPECIAL_STAGE2 || ((loopdev || streq(method_live, "disk")) && 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. "