summaryrefslogtreecommitdiff
path: root/serverboot
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-05-15 22:14:36 +0000
committerRoland McGrath <roland@gnu.org>1999-05-15 22:14:36 +0000
commit6c4bc2723fa9f471045d2e1f0bfb9f67d4b87fd5 (patch)
tree11ae40d48c6375a3be1d19980a58d243df2d93d3 /serverboot
parent55b7d72f9bf1b0d41a84be1d3669c39e74135b0a (diff)
1999-05-15 Roland McGrath <roland@baalperazim.frob.com>
* bootstrap.c (main): Remove vars HAD_A_PARITION, DOING_DEFAULT_PAGER. Remove $(default-pager) boot script tag. We always stick around and act as the default pager (this was already the case, just removed some dead code). Don't print anything about having no swap partitions, since that is a fine way to boot (just use swapon later).
Diffstat (limited to 'serverboot')
-rw-r--r--serverboot/bootstrap.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/serverboot/bootstrap.c b/serverboot/bootstrap.c
index 73a712cb..d103e60f 100644
--- a/serverboot/bootstrap.c
+++ b/serverboot/bootstrap.c
@@ -144,15 +144,11 @@ main(argc, argv)
int argc;
char **argv;
{
- int doing_default_pager = 0;
- int had_a_partition = 0;
int script_paging_file (const struct cmd *cmd, int linux_signature)
{
if (add_paging_file (bootstrap_master_device_port, cmd->path,
linux_signature))
printf ("(serverboot): %s: Cannot add paging file\n", cmd->path);
- else
- had_a_partition = 1;
return 0;
}
int script_add_paging_file (const struct cmd *cmd, int *val)
@@ -167,11 +163,6 @@ main(argc, argv)
{
return script_paging_file (cmd, 1);
}
- int script_default_pager (const struct cmd *cmd, int *val)
- {
- doing_default_pager = 1;
- return 0;
- }
register kern_return_t result;
struct file scriptf;
@@ -329,8 +320,6 @@ main(argc, argv)
|| boot_script_define_function ("add-linux-paging-file",
VAL_NONE,
&script_add_linux_paging_file)
- || boot_script_define_function ("default-pager", VAL_NONE,
- &script_default_pager)
)
panic ("bootstrap: error setting boot script variables");
@@ -403,16 +392,6 @@ main(argc, argv)
}
#endif
- if (had_a_partition)
- doing_default_pager = 1;
- else
- printf ("(serverboot): Running without any paging\n");
-
-#if 0 /* Always stick around to handle swapon requests */
- if (! doing_default_pager)
- task_terminate (mach_task_self ());
-#endif
-
default_pager_initialize (bootstrap_master_host_port);
/*