From owner-svn-src-all@FreeBSD.ORG Fri May 30 16:53:54 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF73D3AC; Fri, 30 May 2014 16:53:54 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A28CE2A0C; Fri, 30 May 2014 16:53:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4UGrs3M060794; Fri, 30 May 2014 16:53:54 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4UGrsqB060792; Fri, 30 May 2014 16:53:54 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201405301653.s4UGrsqB060792@svn.freebsd.org> From: Nathan Whitehorn Date: Fri, 30 May 2014 16:53:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266895 - in head/etc: etc.amd64 etc.i386 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2014 16:53:54 -0000 Author: nwhitehorn Date: Fri May 30 16:53:53 2014 New Revision: 266895 URL: http://svnweb.freebsd.org/changeset/base/266895 Log: Enable a login console on ttyu0 by default if it is a serial console. This prevents surprising effects post-installation on serial-only x86 systems (e.g. bhyve) where the kernel messages will appear, rc scripts will run, and then there will be no login prompt and you will be locked out of the system. Thanks to Devin Teske and Peter Grehan for ideas and testing. With this patch, it may also be possible to unify all or most of the machine-specific ttys files. Modified: head/etc/etc.amd64/ttys head/etc/etc.i386/ttys Modified: head/etc/etc.amd64/ttys ============================================================================== --- head/etc/etc.amd64/ttys Fri May 30 16:49:12 2014 (r266894) +++ head/etc/etc.amd64/ttys Fri May 30 16:53:53 2014 (r266895) @@ -41,7 +41,7 @@ ttyv7 "/usr/libexec/getty Pc" xterm on ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. -ttyu0 "/usr/libexec/getty std.9600" dialup off secure +ttyu0 "/usr/libexec/getty std.9600" vt100 onifconsole secure ttyu1 "/usr/libexec/getty std.9600" dialup off secure ttyu2 "/usr/libexec/getty std.9600" dialup off secure ttyu3 "/usr/libexec/getty std.9600" dialup off secure Modified: head/etc/etc.i386/ttys ============================================================================== --- head/etc/etc.i386/ttys Fri May 30 16:49:12 2014 (r266894) +++ head/etc/etc.i386/ttys Fri May 30 16:53:53 2014 (r266895) @@ -41,7 +41,7 @@ ttyv7 "/usr/libexec/getty Pc" xterm on ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. -ttyu0 "/usr/libexec/getty std.9600" dialup off secure +ttyu0 "/usr/libexec/getty std.9600" vt100 onifconsole secure ttyu1 "/usr/libexec/getty std.9600" dialup off secure ttyu2 "/usr/libexec/getty std.9600" dialup off secure ttyu3 "/usr/libexec/getty std.9600" dialup off secure