Kernel: Don't launch init process twice

I had accidentrally left the old init process launch in when replacing
it with the new one.
This commit is contained in:
Bananymous 2024-11-19 20:43:38 +02:00
parent c07fd265f0
commit 97718b4046
1 changed files with 0 additions and 2 deletions

View File

@ -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<BAN::StringView>(&console_path_sv, 1)));