Fix issue where cmdline is not loaded
diff --git a/src/main.c b/src/main.c
index b703986a..837dd587 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
