aboutsummaryrefslogtreecommitdiff
path: root/serverboot/bootstrap.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-06-20 19:49:11 +0000
committerThomas Bushnell <thomas@gnu.org>1997-06-20 19:49:11 +0000
commit09791c7ac023fe6688c072c1aae6c50daee1f061 (patch)
treeb669d21672a4da537a0c211c8062c113095a1067 /serverboot/bootstrap.c
parenta8297c7e7cf37673ce734836a2f95d2b5f46d2c7 (diff)
downloadhurd-09791c7ac023fe6688c072c1aae6c50daee1f061.tar.gz
hurd-09791c7ac023fe6688c072c1aae6c50daee1f061.tar.bz2
hurd-09791c7ac023fe6688c072c1aae6c50daee1f061.zip
Fri Jun 20 15:37:15 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* bootstrap.c (main/script_paging_file): Instead of returning an error use new variable `had_a_partition' to record whether we successfully opened a partition. (main/script_default_pager): Only start pager if HAD_A_PARTITION; otherwise print warning message. Mon Jun 16 11:52:40 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * Makefile (installationdir): Use `=' to set this instead of :=; $(prefix) is not yet available and `=' postpones the evaluation properly. Reported by Marcus G. Daniels, marcus@cathcart.sysc.pdx.edu.
Diffstat (limited to 'serverboot/bootstrap.c')
-rw-r--r--serverboot/bootstrap.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/serverboot/bootstrap.c b/serverboot/bootstrap.c
index d238e8bb..5a104bf7 100644
--- a/serverboot/bootstrap.c
+++ b/serverboot/bootstrap.c
@@ -139,19 +139,23 @@ main(argc, argv)
char **argv;
{
int doing_default_pager = 0;
+ int had_a_partition = 0;
int script_paging_file (const struct cmd *cmd, int *val)
{
if (add_paging_file (bootstrap_master_device_port, cmd->path))
- {
- printf ("(bootstrap): %s: Cannot add paging file\n", cmd->path);
- return BOOT_SCRIPT_MACH_ERROR;
- }
- return 0;
+ printf ("(bootstrap): %s: Cannot add paging file\n", cmd->path);
+ else
+ had_a_partition = 1;
}
int script_default_pager (const struct cmd *cmd, int *val)
{
- default_pager_initialize(bootstrap_master_host_port);
- doing_default_pager = 1;
+ if (had_a_partition)
+ {
+ default_pager_initialize(bootstrap_master_host_port);
+ doing_default_pager = 1;
+ }
+ else
+ printf ("(bootstrap): Running without any paging\n");
return 0;
}