From 78c546d40cff285747ead9c15e5cb5b9496b7164 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 11 Jan 2001 18:21:13 +0000 Subject: - add FTP - add HTTP - use single place for mountpoints and static directories --- mdk-stage1/stage1.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mdk-stage1/stage1.c') diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 935d92810..d18d0d93a 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -189,6 +189,7 @@ int main(int argc, char **argv, char **env) open_log(); log_message("welcome to the " DISTRIB_NAME " install (stage1, version " VERSION " built " __DATE__ " " __TIME__")"); process_cmdline(); + handle_env(env); spawn_shell(); if (load_modules_dependencies()) fatal_error("could not open and parse modules dependencies"); @@ -203,8 +204,8 @@ int main(int argc, char **argv, char **env) fatal_error("could not select an installation method"); if (!IS_RAMDISK) { - if (symlink("/tmp/image/Mandrake/mdkinst", "/tmp/stage2") != 0) - fatal_error("symlink to /tmp/stage2 failed"); + if (symlink(IMAGE_LOCATION LIVE_LOCATION, STAGE2_LOCATION) != 0) + fatal_error("symlink to " STAGE2_LOCATION " failed"); } if (IS_RESCUE) { @@ -223,10 +224,11 @@ int main(int argc, char **argv, char **env) argptr = stage2_args; *argptr++ = "/usr/bin/runinstall2"; + *argptr++ = "--method"; *argptr++ = method_name; *argptr++ = NULL; - execve(stage2_args[0], stage2_args, env); + execve(stage2_args[0], stage2_args, grab_env()); printf("error in exec of stage2 :-(\n"); fatal_error(strerror(errno)); -- cgit v1.2.1