stage2 symlink back for a while
This commit is contained in:
parent
2c956f151a
commit
8eb957321e
12
stage1.c
12
stage1.c
@ -110,7 +110,7 @@ static void spawn_shell(void)
|
|||||||
{
|
{
|
||||||
#ifdef SPAWN_SHELL
|
#ifdef SPAWN_SHELL
|
||||||
int fd;
|
int fd;
|
||||||
char * shell_name[] = { "/bin/sh", NULL };
|
char * shell_name[] = { "/sbin/sh", NULL };
|
||||||
|
|
||||||
log_message("spawning a shell");
|
log_message("spawning a shell");
|
||||||
|
|
||||||
@ -386,7 +386,7 @@ int main(int argc, char **argv, char **env)
|
|||||||
char * stage2_args[30];
|
char * stage2_args[30];
|
||||||
char * pcmcia_adapter = NULL;
|
char * pcmcia_adapter = NULL;
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
spawn_interactive();
|
spawn_interactive();
|
||||||
|
|
||||||
open_log();
|
open_log();
|
||||||
@ -426,6 +426,14 @@ int main(int argc, char **argv, char **env)
|
|||||||
if (ret != RETURN_OK)
|
if (ret != RETURN_OK)
|
||||||
fatal_error("could not select an installation method");
|
fatal_error("could not select an installation method");
|
||||||
|
|
||||||
|
if (!IS_RAMDISK) {
|
||||||
|
if (symlink(IMAGE_LOCATION LIVE_LOCATION, STAGE2_LOCATION) != 0) {
|
||||||
|
perror("symlink");
|
||||||
|
printf("symlink from " IMAGE_LOCATION LIVE_LOCATION " to " STAGE2_LOCATION " failed");
|
||||||
|
fatal_error(strerror(errno));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (interactive_pid != 0)
|
if (interactive_pid != 0)
|
||||||
kill(interactive_pid, 9);
|
kill(interactive_pid, 9);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user