Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 1998 17:30:32 -0500 (CDT)
From:      daved@tamu.edu
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/8377: boot.config not being used.
Message-ID:  <199810192230.RAA21591@orion.tamu.edu>

next in thread | raw e-mail | index | archive | help

>Number:         8377
>Category:       kern
>Synopsis:       boot.config not being used.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 19 15:30:00 PDT 1998
>Last-Modified:
>Originator:     Dave Duchscher
>Organization:
Texas A&M University
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:



>Description:

boot.config file is read but the settings are not used.  I have made
the following changes to get things to work but someone should really
sanity check this patch.  My problem was that the -P switch would not
work with out this change.

>How-To-Repeat:

	

>Fix:
	
diff -Nur sys-dist/i386/boot/biosboot/boot.c sys/i386/boot/biosboot/boot.c
--- sys-dist/i386/boot/biosboot/boot.c	Fri Feb 27 16:56:14 1998
+++ sys/i386/boot/biosboot/boot.c	Sun Aug  9 08:51:14 1998
@@ -140,13 +140,18 @@
 	} else
 #endif	/*NAMEBLOCK*/
 		name = "kernel";
+loadstart:
+	/*
+	 * Ignore flags from previous attempted boot, if any.
+	 */
+	loadflags &= (RB_DUAL | RB_SERIAL);
+
 	if (boot_config[0] != '\0') {
 		printf("boot.config: %s", boot_config);
 		getbootdev(boot_config, &loadflags);
 		if (openrd() != 0)
 			name = "kernel";
 	}
-loadstart:
 	/* print this all each time.. (saves space to do so) */
 	/* If we have looped, use the previous entries as defaults */
 	printf("\r \n>> FreeBSD BOOT @ 0x%x: %d/%d k of memory, %s%s console\n"
@@ -159,13 +164,6 @@
 	       dosdev & 0x7f, devs[maj], unit, 'a' + part,
 	       name ? name : "*specify_a_kernel_name*",
 	       boot_help);
-
-	/*
-	 * Ignore flags from previous attempted boot, if any.
-	 * XXX this is now too strict.  Settings given in boot.config should
-	 * not be changed.
-	 */
-	loadflags &= (RB_DUAL | RB_SERIAL);
 
 	/*
 	 * Be paranoid and make doubly sure that the input buffer is empty.
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810192230.RAA21591>