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
commit951c6e04922ba7e9b30444a183c01d81c8767aca (patch)
treedf5a2c8438059d2374e39331e1f925098be4cb5a /serverboot
parent93902d1a33d1f088b6176d4cc6de6918af21b029 (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);
/*