From owner-freebsd-bugs Mon Sep 13 12:40: 6 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5EC71153DD for ; Mon, 13 Sep 1999 12:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA48824; Mon, 13 Sep 1999 12:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from eterna.binary.net (eterna.binary.net [12.13.84.6]) by hub.freebsd.org (Postfix) with ESMTP id 532BD14EEE for ; Mon, 13 Sep 1999 12:31:45 -0700 (PDT) (envelope-from nathan@rtfm.net) Received: from matrix.binary.net (root@matrix.binary.net [12.13.120.2]) by eterna.binary.net (8.9.1a/8.9.1) with ESMTP id OAA29778 for ; Mon, 13 Sep 1999 14:31:45 -0500 (CDT) Received: (from nathan@localhost) by matrix.binary.net (8.9.3/8.9.1) id OAA15311; Mon, 13 Sep 1999 14:31:44 -0500 (CDT) Message-Id: <199909131931.OAA15311@matrix.binary.net> Date: Mon, 13 Sep 1999 14:31:44 -0500 (CDT) From: nathan@rtfm.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/13738: [PATCH] sysinstall incorrectly writes loader.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13738 >Category: conf >Synopsis: [PATCH] sysinstall incorrectly writes loader.conf >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 13 12:40:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Nathan Dorfman >Release: FreeBSD 4.0-CURRENT (August 27 snap install) i386 >Organization: none >Environment: 4.0-1990827 Installation i386 machine without monitor/keyboard Console on COM1 >Description: When you install the system over a serial console, sysinstall records this with a line in /boot/loader.conf on the installed system: console="serial" Unfortunately, this is wrong. It should be: console="comconsole" The impact is that when the newly installed system is rebooted, it will not use the serial console, until this line is changed (or the -h boot flag is used). (P.S. - it would also be nice if either the console="comconsole" line or sysinstall itself would spawn a getty on the serial console; currently it locks you out of your new system if you have not used sysinstall's interface to add a non-root user before booting the new system). >How-To-Repeat: Unplug the keyboard, connect a console to COM1, and install the OS (the boot floppy will detect and use the comconsole). Afterwards, reboot the newly installed system -- the line in /boot/loader.conf will be incorrect and the serial console will not be used. >Fix: --- sysinstall/install.c-dist Mon Sep 13 15:26:47 1999 +++ sysinstall/install.c Mon Sep 13 15:26:24 1999 @@ -756,7 +756,7 @@ fprintf(fp, "# -- sysinstall generated deltas -- #\n"); fprintf(fp, "userconfig_script_load=\"YES\"\n"); if (!OnVTY) - fprintf(fp, "console=\"serial\"\n"); + fprintf(fp, "console=\"comconsole\"\n"); fclose(fp); } } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message