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
_______________________________________________
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-unsubscr...@freebsd.org"

Reply via email to