Browse Source

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.
Liav A 1 year ago
parent
commit
c3d28d7f5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Kernel/Boot/CommandLine.cpp

+ 1 - 1
Kernel/Boot/CommandLine.cpp

@@ -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