summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/network.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-13 08:34:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-13 08:34:50 +0000
commite79950d93af06b735b86548120dc60b2c5be6ee0 (patch)
treecd0d96ad02a9febbbf7b00071c84d89adf81fdc0 /mdk-stage1/network.c
parent29a2a329574efc2b945de3d9f2dc08803c6dafd9 (diff)
downloaddrakx-e79950d93af06b735b86548120dc60b2c5be6ee0.tar
drakx-e79950d93af06b735b86548120dc60b2c5be6ee0.tar.gz
drakx-e79950d93af06b735b86548120dc60b2c5be6ee0.tar.bz2
drakx-e79950d93af06b735b86548120dc60b2c5be6ee0.tar.xz
drakx-e79950d93af06b735b86548120dc60b2c5be6ee0.zip
instead of keeping stage1 (mostly as temporary space but with a fixed size, and for the background init),
exit the stage1 giving hand to stage2 in a tmpfs (same as what was done for Mandrakemove)
Diffstat (limited to 'mdk-stage1/network.c')
-rw-r--r--mdk-stage1/network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index 13085cfcc..7cc30ff7f 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -693,7 +693,7 @@ enum return_type nfs_prepare(void)
if (IS_RESCUE)
umount(IMAGE_LOCATION);
- method_name = strdup("nfs");
+ add_to_env("METHOD", "nfs");
return RETURN_OK;
}
@@ -800,13 +800,13 @@ enum return_type ftp_prepare(void)
}
if (use_http_proxy) {
- method_name = strdup("http");
+ add_to_env("METHOD", "http");
sprintf(location_full, "ftp://%s%s", ftp_hostname, answers[1]);
add_to_env("URLPREFIX", location_full);
add_to_env("PROXY", answers[4]);
add_to_env("PROXYPORT", answers[5]);
} else {
- method_name = strdup("ftp");
+ add_to_env("METHOD", "ftp");
add_to_env("HOST", answers[0]);
add_to_env("PREFIX", answers[1]);
if (!streq(answers[2], "")) {
@@ -875,7 +875,7 @@ enum return_type http_prepare(void)
if (load_ramdisk_fd(fd, size) != RETURN_OK)
return RETURN_ERROR;
- method_name = strdup("http");
+ add_to_env("METHOD", "http");
sprintf(location_full, "http://%s%s", answers[0], answers[1]);
add_to_env("URLPREFIX", location_full);
if (!streq(answers[2], ""))