preinit: Search for init in several directories
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
43fa128e29
commit
6e269c6bc4
@ -72,13 +72,10 @@ int main()
|
||||
// Now, mount the /dev file system on the new root.
|
||||
mount_devfs();
|
||||
|
||||
/*setenv("PATH", "/bin:/usr/bin", 1);
|
||||
setenv("PATH", "/sbin:/usr/bin", 1);
|
||||
char* argv[] = { "init", nullptr };
|
||||
char* envp[] = { nullptr };
|
||||
execvpe(argv[0], argv, envp);*/
|
||||
|
||||
char* argv[] = { "/usr/bin/init", nullptr };
|
||||
execv(argv[0], argv);
|
||||
execvpe(argv[0], argv, envp);
|
||||
|
||||
fail_errno("Failed to execute init");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user