Date: Tue, 10 Feb 2004 22:14:05 +0300 (MSK) From: Dmitry Morozovsky <marck@rinet.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/62658: loader/kernel answer to `boot -a' ignored when comconsole is configured Message-ID: <200402101914.i1AJE594001545@woozle.rinet.ru> Resent-Message-ID: <200402101920.i1AJKFkU021341@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 62658 >Category: kern >Synopsis: loader/kernel answer to `boot -a' ignored when comconsole is configured >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 10 11:20:14 PST 2004 >Closed-Date: >Last-Modified: >Originator: Dmitry Morozovsky >Release: FreeBSD 4-STABLE i386 >Organization: Cronyx Plus LLC (RiNet ISP) >Environment: System: FreeBSD 4-STABLE >Description: FreeBSD loader/kernel refuses to set up the emergency root device when asked to, if the console is configured as comconsole: [loader prompt] boot -a -s ... ... ad0: 7339MB <QUANTUM FIREBALL EL7.6A> [15907/15/63] at ata0-master UDMA33 Manual root filesystem specification: <fstype>:<device> Mount <device> using filesystem <fstype> eg. ufs:/dev/da0s1a ? List valid disk boot devices <empty line> Abort manual input mountroot> ufs:/dev/ad0s1e Mounting root from ufs:/dev/ad0s1a Look at the two last lines. Input asked at vfs_mountroot_ask() has not been used, possibly because kern/vfs_conf.c:gets() dit not actually read the input from comconsole. However, I'm not kernel hacker and looking at kern/tty_cons.c scares me a bit :) yar@ confirmed this bug also exists in -current >How-To-Repeat: configure comconsole, such as `echo -h >/boot.config' reboot enter any path to root partition but configured, or simple `?' watch for kernel mounting default root partition >Fix: None for the moment, sorry. Possible workaround (at least for 4-stable): set vfs.root.mountfrom="/dev/DEVICE-TO-MAKE-ROOT" at loader prompt before `boot' >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402101914.i1AJE594001545>