From nobody@FreeBSD.org  Tue Sep 27 00:51: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 17061106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Sep 2011 00:51: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 E29008FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Sep 2011 00:51: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 p8R0pfAr018831
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Sep 2011 00:51:41 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8R0pfL4018830;
	Tue, 27 Sep 2011 00:51:41 GMT
	(envelope-from nobody)
Message-Id: <201109270051.p8R0pfL4018830@red.freebsd.org>
Date: Tue, 27 Sep 2011 00:51:41 GMT
From: Ben Kaduk <kaduk@mit.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsdinstall should run a concurrent shell on another vt
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161048
>Category:       bin
>Synopsis:       [patch] bsdinstall(8): should run a concurrent shell on another vt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 27 01:00:20 UTC 2011
>Closed-Date:    Sat Mar 03 02:24:33 UTC 2012
>Last-Modified:  Sat Mar 03 02:24:33 UTC 2012
>Originator:     Ben Kaduk
>Release:        9-beta 2
>Organization:
MIT SIPB
>Environment:
n/a
>Description:
Per Brett Glass's mail to -current on 25 September 2011, it would be useful to have a shell available at any point during the installer.  Though there is an option to drop to a shell at a couple of points, there are other places where it could be useful.
>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:33:57 UTC 2011 
Responsible-Changed-Why:  

fix synopsys and assign 


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

From: Jaakko Heinonen <jh@FreeBSD.org>
To: Ben Kaduk <kaduk@mit.edu>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/161048: bsdinstall should run a concurrent shell on another
 vt
Date: Fri, 7 Oct 2011 10:25:32 +0300

 On 2011-09-27, Ben Kaduk wrote:
 > Per Brett Glass's mail to -current on 25 September 2011, it would be
 > useful to have a shell available at any point during the installer.
 > Though there is an option to drop to a shell at a couple of points,
 > there are other places where it could be useful.
 
 I have an experimental patch to start bsdinstall on ttyv8. "Live CD" is
 usable on ttyv0-ttyv7 during the installation.
 
 The patch:
 
 	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/161048: 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/161048: commit references a PR
Date: Sat,  3 Mar 2012 02:14:08 +0000 (UTC)

 Author: nwhitehorn
 Date: Sat Mar  3 02:13:53 2012
 New Revision: 232427
 URL: http://svn.freebsd.org/changeset/base/232427
 
 Log:
   MFC r230482-230484,r230997:
   
   Per popular demand, if installing from a graphics terminal, show the
   installer log in real time on VTY 3, and spawn a shell on VTY 4.
   
   PR:		bin/161048
 
 Modified:
   stable/9/release/rc.local
 Directory Properties:
   stable/9/release/   (props changed)
 
 Modified: stable/9/release/rc.local
 ==============================================================================
 --- stable/9/release/rc.local	Sat Mar  3 01:33:10 2012	(r232426)
 +++ stable/9/release/rc.local	Sat Mar  3 02:13:53 2012	(r232427)
 @@ -12,12 +12,21 @@ MACHINE=`uname -m`
  
  kbdcontrol -d >/dev/null 2>&1
  if [ $? -eq 0 ]; then
 -	# Syscons: use xterm
 +	# Syscons: use xterm, start interesting things on other VTYs
  	if [ ${MACHINE} = "pc98" ]; then
  		TERM=cons25w
  	else
  		TERM=xterm
  	fi
 +
 +	if [ -z "$EXTERNAL_VTY_STARTED" ]; then
 +		# 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
 +	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"
 
State-Changed-From-To: open->closed 
State-Changed-By: nwhitehorn 
State-Changed-When: Sat Mar 3 02:24:01 UTC 2012 
State-Changed-Why:  
Fixed and MFC'ed to 9-STABLE. Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161048 
>Unformatted:
