scheduler: actually run /sbin/init now

This commit is contained in:
Matheus
2022-09-20 20:29:16 -03:00
parent 4b939dcaab
commit 0b27133826
+2 -2
View File
@@ -449,14 +449,14 @@ void sched_runinit(){
stdoutfd->flags = stderrfd->flags = O_WRONLY + 1; stdoutfd->flags = stderrfd->flags = O_WRONLY + 1;
vnode_t* node; vnode_t* node;
ret = vfs_open(&node, vfs_root(), "usr/bin/bash"); ret = vfs_open(&node, vfs_root(), "/sbin/init");
if(ret){ if(ret){
printf("Open failed: %s\n", strerror(ret)); printf("Open failed: %s\n", strerror(ret));
_panic("Could not load init", 0); _panic("Could not load init", 0);
} }
char* argv[] = {"/usr/bin/bash", NULL}; char* argv[] = {"/sbin/init", NULL};
char* env[] = {NULL}; char* env[] = {NULL};
void *entry, *stack; void *entry, *stack;