exec_initd()
{
int errno = 0;
+ const char* argv[] = { "/mnt/lunaix-os/usr/bin/init", 0 };
+ const char* envp[] = { 0 };
- if ((errno = exec_kexecve("/mnt/lunaix-os/usr/bin/init", NULL, NULL))) {
+ if ((errno = exec_kexecve(argv[0], argv, envp))) {
goto fail;
}
lunad_do_usr() {
// No, these are not preemptive
cpu_disable_interrupt();
-
+
if (!mount_bootmedium() || !exec_initd()) {
fail("failed to initd");
}