Kernel: Switch init boot argument to "/init"

This doesn't affect system functionality, but somewhat reduces the
reliance on complicated hardcoded paths. It also allows the user to
simply link /init (which is normally a symbolic link) to another program
to run it instead of SystemServer as the default option.
This commit is contained in:
Liav A 2023-10-28 12:17:51 +03:00 committed by Andrew Kaster
parent 4a50c01c50
commit c3d28d7f5a

View file

@ -298,7 +298,7 @@ UNMAP_AFTER_INIT CommandLine::GraphicsSubsystemMode CommandLine::graphics_subsys
StringView CommandLine::userspace_init() const
{
return lookup("init"sv).value_or("/bin/SystemServer"sv);
return lookup("init"sv).value_or("/init"sv);
}
Vector<NonnullOwnPtr<KString>> CommandLine::userspace_init_args() const