From 97718b40468c7e8a368876b734d0b896a0c08831 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 19 Nov 2024 20:43:38 +0200 Subject: [PATCH] Kernel: Don't launch init process twice I had accidentrally left the old init process launch in when replacing it with the new one. --- kernel/kernel/kernel.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/kernel/kernel.cpp b/kernel/kernel/kernel.cpp index 0956cec1..51ff6e9a 100644 --- a/kernel/kernel/kernel.cpp +++ b/kernel/kernel/kernel.cpp @@ -254,8 +254,6 @@ static void init2(void*) TTY::initialize_devices(); - MUST(Process::create_userspace({ 0, 0, 0, 0 }, "/usr/bin/init"_sv, {})); - auto console_path = MUST(BAN::String::formatted("/dev/{}", cmdline.console)); auto console_path_sv = console_path.sv(); MUST(Process::create_userspace({ 0, 0, 0, 0 }, "/usr/bin/init"_sv, BAN::Span(&console_path_sv, 1)));