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:
parent
c07fd265f0
commit
97718b4046
|
@ -254,8 +254,6 @@ static void init2(void*)
|
||||||
|
|
||||||
TTY::initialize_devices();
|
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 = MUST(BAN::String::formatted("/dev/{}", cmdline.console));
|
||||||
auto console_path_sv = console_path.sv();
|
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)));
|
MUST(Process::create_userspace({ 0, 0, 0, 0 }, "/usr/bin/init"_sv, BAN::Span<BAN::StringView>(&console_path_sv, 1)));
|
||||||
|
|
Loading…
Reference in New Issue