From c3d28d7f5add78db1ff23311fbd7685bc924d2a2 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 28 Oct 2023 12:17:51 +0300 Subject: [PATCH] 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. --- Kernel/Boot/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Boot/CommandLine.cpp b/Kernel/Boot/CommandLine.cpp index 0dad946fe3..8314a781cd 100644 --- a/Kernel/Boot/CommandLine.cpp +++ b/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> CommandLine::userspace_init_args() const