mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:07:34 +00:00
Kernel: Add self-test boot mode, an alias for text mode
Add a special boot mode for running tests, rather than using the system as a general purpose OS. We'll use this in SystemServer to specify only services needed to run tests and exit.
This commit is contained in:
parent
ca8319f800
commit
5046213556
1 changed files with 3 additions and 1 deletions
|
@ -247,7 +247,9 @@ void init_stage2(void*)
|
||||||
|
|
||||||
PCI::initialize();
|
PCI::initialize();
|
||||||
|
|
||||||
bool text_mode = kernel_command_line().lookup("boot_mode").value_or("graphical") == "text";
|
auto boot_mode = kernel_command_line().lookup("boot_mode").value_or("graphical");
|
||||||
|
// FIXME: Richer boot mode options would be nice instead of adding more strcmp here
|
||||||
|
bool text_mode = boot_mode == "text" || boot_mode == "self-test";
|
||||||
|
|
||||||
if (text_mode) {
|
if (text_mode) {
|
||||||
dbgln("Text mode enabled");
|
dbgln("Text mode enabled");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue