summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-06-02 06:56:37 +0000
committerRoland McGrath <roland@gnu.org>1999-06-02 06:56:37 +0000
commit7a0ea461d7cf24e7f3900a5e7f8e7bbaffee24f9 (patch)
tree218dce93be014e92ac04bb96bee9e4d95ddbf382
parent948b66c9985c9b64a86f2acc73258e7831f2b282 (diff)
1999-06-02 Roland McGrath <roland@baalperazim.frob.com>
* bootstrap.c (main): If we have a MULTIBOOT_CMDLINE environment variable, set its value as ${kernel-command-line} for boot scripts.
-rw-r--r--serverboot/bootstrap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/serverboot/bootstrap.c b/serverboot/bootstrap.c
index 58096f21..292bf81b 100644
--- a/serverboot/bootstrap.c
+++ b/serverboot/bootstrap.c
@@ -314,6 +314,8 @@ main(argc, argv)
partition_init();
{
+ char *cmdline;
+
/* Initialize boot script variables. */
if (boot_script_set_variable ("host-port", VAL_PORT,
(int) bootstrap_master_host_port)
@@ -336,6 +338,13 @@ main(argc, argv)
)
panic ("bootstrap: error setting boot script variables");
+ cmdline = getenv ("MULTIBOOT_CMDLINE");
+ if (cmdline != NULL
+ && boot_script_set_variable ("kernel-command-line",
+ VAL_STR,
+ (int) cmdline))
+ panic ("bootstrap: error setting boot script variables");
+
parse_script (&scriptf);
close_file (&scriptf);
}