Fix issue where cmdline is not loaded

This commit is contained in:
mintsuki 2020-04-22 17:47:25 +02:00
parent bc7f7277cc
commit 633d49b720
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,7 @@ refresh:
case '\r':
config_set_entry(selected_entry);
text_enable_cursor();
config_get_value(cmdline, 0, 128, "KERNEL_CMDLINE");
text_clear();
return;
case 'e':
@ -132,6 +133,8 @@ void main(int boot_drive) {
panic("Invalid config entry.");
}
config_get_value(cmdline, 0, 128, "KERNEL_CMDLINE");
got_entry:
if (!config_get_value(buf, 0, 32, "KERNEL_DRIVE")) {
print("KERNEL_DRIVE not specified, using boot drive (%x)", boot_drive);