From fbaaf6ed6e97c7900e3fe09ce664a2437b4fd61b Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 8 Oct 1999 13:32:41 +0000 Subject: 1999-10-08 Thomas Bushnell, BSG * bootstrap.c: (DEFAULT_ROOT): Remove macro. (main): If no root device was specified, then prompt as if the user had specified -a. --- serverboot/ChangeLog | 6 ++++++ serverboot/bootstrap.c | 13 +++---------- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'serverboot') diff --git a/serverboot/ChangeLog b/serverboot/ChangeLog index 10832cb7..3b25fce8 100644 --- a/serverboot/ChangeLog +++ b/serverboot/ChangeLog @@ -1,3 +1,9 @@ +1999-10-08 Thomas Bushnell, BSG + + * bootstrap.c: (DEFAULT_ROOT): Remove macro. + (main): If no root device was specified, then prompt as if the + user had specified -a. + 1999-10-06 Roland McGrath * bootstrap.c (DEFAULT_ROOT): Change to "hd0s1". diff --git a/serverboot/bootstrap.c b/serverboot/bootstrap.c index ce9e2e10..69e4f892 100644 --- a/serverboot/bootstrap.c +++ b/serverboot/bootstrap.c @@ -37,10 +37,6 @@ #include "../boot/boot_script.h" -/* Use this device if no root specified. */ -#define DEFAULT_ROOT "hd0s1" - - #if 0 /* * Use 8 Kbyte stacks instead of the default 64K. @@ -236,15 +232,12 @@ main(argc, argv) panic_init(bootstrap_master_host_port); #endif - if (root_name[0] == '\0') - root_name = DEFAULT_ROOT; - /* - * If the '-a' (ask) switch was specified, ask for - * the root device. + * If the '-a' (ask) switch was specified, or if no + * root device was specificed, ask for the root device. */ - if (index(flag_string, 'a')) { + if (root_name [0] == '\0' || index(flag_string, 'a')) { static char new_root[16]; printf("root device? [%s] ", root_name); -- cgit v1.2.3