added symlink()'ing usr -> tmp/stage2/usr, same for lib FOR A WHILE
not needed with pivot_root & friends
This commit is contained in:
parent
579b157076
commit
4bc44a613c
12
stage1.c
12
stage1.c
@ -422,6 +422,18 @@ int main(int argc, char **argv, char **env)
|
|||||||
fatal_error(strerror(errno));
|
fatal_error(strerror(errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (symlink(STAGE2_LOCATION "/usr", "/usr") != 0) {
|
||||||
|
perror("symlink");
|
||||||
|
printf("symlink from " STAGE2_LOCATION "/usr to /usr failed");
|
||||||
|
fatal_error(strerror(errno));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (symlink(STAGE2_LOCATION "/lib", "/lib") != 0) {
|
||||||
|
perror("symlink");
|
||||||
|
printf("symlink from " STAGE2_LOCATION "/lib to /lib failed");
|
||||||
|
fatal_error(strerror(errno));
|
||||||
|
}
|
||||||
|
|
||||||
if (interactive_pid != 0)
|
if (interactive_pid != 0)
|
||||||
kill(interactive_pid, 9);
|
kill(interactive_pid, 9);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user