added symlink()'ing usr -> tmp/stage2/usr, same for lib FOR A WHILE

not needed with pivot_root & friends
This commit is contained in:
Sergey Bolshakov 2004-11-24 17:02:28 +00:00
parent 579b157076
commit 4bc44a613c

View File

@ -422,6 +422,18 @@ int main(int argc, char **argv, char **env)
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)
kill(interactive_pid, 9);