From nobody@FreeBSD.org  Tue Sep 27 00:48:42 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2074B1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Sep 2011 00:48:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id EC51F8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Sep 2011 00:48:41 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R0mfcm018665
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Sep 2011 00:48:41 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8R0mfT7018664;
	Tue, 27 Sep 2011 00:48:41 GMT
	(envelope-from nobody)
Message-Id: <201109270048.p8R0mfT7018664@red.freebsd.org>
Date: Tue, 27 Sep 2011 00:48:41 GMT
From: Ben Kaduk <kaduk@mit.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsdinstall should not run on vt0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161047
>Category:       bin
>Synopsis:       [patch] bsdinstall(8): should not run on vt0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 27 00:50:03 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Jan 23 16:20:05 UTC 2012
>Originator:     Ben Kaduk
>Release:        9-beta 2
>Organization:
MIT SIPB
>Environment:
n/a
>Description:
In the installer images, bsdinstall appears to be running on vt0, which is by default the (video) console.  This means that any console spew, such as LOR warnings (which are ~guaranteed at present) will overwrite the installer dialogs.  Running the installer on a vt that is not the console will prevent this.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-sysinstall 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Thu Oct 6 04:36:23 UTC 2011 
Responsible-Changed-Why:  

fix synopsys and assign 


http://www.freebsd.org/cgi/query-pr.cgi?pr=161047 

From: Jaakko Heinonen <jh@FreeBSD.org>
To: Ben Kaduk <kaduk@mit.edu>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/161047: bsdinstall should not run on vt0
Date: Fri, 7 Oct 2011 10:21:30 +0300

 On 2011-09-27, Ben Kaduk wrote:
 > In the installer images, bsdinstall appears to be running on vt0,
 > which is by default the (video) console.  This means that any console
 > spew, such as LOR warnings (which are ~guaranteed at present) will
 > overwrite the installer dialogs.  Running the installer on a vt that
 > is not the console will prevent this.
 
 I have an experimental patch to start bsdinstall on ttyv8 when the
 installer is run on syscons:
 
 	http://people.freebsd.org/~jh/patches/bsdinstall-getty.3.diff
 
 -- 
 Jaakko

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/161047: commit references a PR
Date: Mon, 23 Jan 2012 15:45:11 +0000 (UTC)

 Author: nwhitehorn
 Date: Mon Jan 23 15:44:52 2012
 New Revision: 230482
 URL: http://svn.freebsd.org/changeset/base/230482
 
 Log:
   Per popular demand, if installing from a graphics terminal, run the
   installer on a VTY with no kernel messages (VTY 2), show the installer
   log in real time on VTY 3, and spawn a shell on VTY 4.
   
   PR:		bin/161047, bin/161048
   MFC after:	2 weeks
 
 Modified:
   head/release/rc.local
 
 Modified: head/release/rc.local
 ==============================================================================
 --- head/release/rc.local	Mon Jan 23 15:39:45 2012	(r230481)
 +++ head/release/rc.local	Mon Jan 23 15:44:52 2012	(r230482)
 @@ -10,8 +10,19 @@
  
  kbdcontrol -d >/dev/null 2>&1
  if [ $? -eq 0 ]; then
 -	# Syscons: use xterm
 +	# Syscons: use xterm, start interesting things on other VTYs
  	TERM=xterm
 +
 +	if [ "$EXTERNAL_VTY_STARTED" -ne 1 ]; then
 +		vidcontrol -s 2 # Switch to a VTY with no kernel messages
 +		# Init will clean these processes up if/when the system
 +		# goes multiuser
 +		touch /tmp/bsdinstall_log
 +		tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
 +		/usr/libexec/getty autologin ttyv3
 +		EXTERNAL_VTY_STARTED=1
 +		trap "vidcontrol -s 1" EXIT
 +	fi
  else
  	# Serial or other console
  	echo
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/161047: commit references a PR
Date: Mon, 23 Jan 2012 16:18:04 +0000 (UTC)

 Author: nwhitehorn
 Date: Mon Jan 23 16:17:54 2012
 New Revision: 230484
 URL: http://svn.freebsd.org/changeset/base/230484
 
 Log:
   Part of r230482 didn't actually work. Revert it for now. This means PR
   161047 isn't actually fixed.
   
   PR:		bin/161047
 
 Modified:
   head/release/rc.local
 
 Modified: head/release/rc.local
 ==============================================================================
 --- head/release/rc.local	Mon Jan 23 15:50:16 2012	(r230483)
 +++ head/release/rc.local	Mon Jan 23 16:17:54 2012	(r230484)
 @@ -14,14 +14,12 @@ if [ $? -eq 0 ]; then
  	TERM=xterm
  
  	if [ -z "$EXTERNAL_VTY_STARTED" ]; then
 -		vidcontrol -s 2 # Switch to a VTY with no kernel messages
  		# Init will clean these processes up if/when the system
  		# goes multiuser
  		touch /tmp/bsdinstall_log
  		tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
  		/usr/libexec/getty autologin ttyv3
  		EXTERNAL_VTY_STARTED=1
 -		trap "vidcontrol -s 1" EXIT
  	fi
  else
  	# Serial or other console
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
