summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/init.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/init/init.c b/init/init.c
index f217fca7..cb9b173d 100644
--- a/init/init.c
+++ b/init/init.c
@@ -71,10 +71,8 @@ int crash_flags = RB_AUTOBOOT;
/* Multiboot command line used to start the kernel,
- a single string of space-separated words.
- XXX should have an option passed from kernel/serverboot to set this
- */
-char *kernel_command_line = "(kernel)";
+ a single string of space-separated words. */
+char *kernel_command_line;
const char *argp_program_version = STANDARD_HURD_VERSION (init);
@@ -1226,6 +1224,9 @@ frob_kernel_process (void)
}
}
+ if (!kernel_command_line)
+ kernel_command_line = getenv ("MULTIBOOT_CMDLINE") ?: "(kernel)";
+
/* The variable `kernel_command_line' contains the multiboot command line
used to boot the kernel, a single string of space-separated words.