Bug 1075125

Summary: /dev/console doesn't ouput to ttyS0
Product: Red Hat Enterprise Linux 6 Reporter: Jaroslav Henner <jhenner>
Component: guest-imagesAssignee: Joey Boggs <jboggs>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.5CC: cpelland, dgregor, fdeutsch, fdinitto, jgreguske, jhenner, leiwang, wshi, yuliu
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1065007 Environment:
Last Closed: 2014-10-22 18:43:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1065007    
Bug Blocks: 1099462    

Comment 4 Jaroslav Henner 2014-03-12 15:32:54 UTC
Aha, it wasn't probably ever working exactly as written in the "Steps to Reproduce:"

With    rhel-guest-image-6-6.5-20140121.0-1, which has 

  console=ttyS0,115200n8 console=tty0 

on the cmdline, the command

  [root@bar cloud-user]# echo console > /dev/console

doesn't output the "console" to the ttyS0, but only to the tty0 and the boot messages are with color codes:

  Setting hostname bar.beerdrop:  [60G[[0;32m  OK  [0;39m]


However, if there is

  console=tty0 console=ttyS0,115200n8 

the output then goes to the ttyS0, but not to tty0.

  Setting hostname foo.beerdrop:  [  OK  ]


So, I would rather preferred the messages without the color codes as it makes the messages more readable in the log, though we don't get the eye candiness on the tty0. So if this has no other implications, I would recommend to change the command line to  console=tty0 console=ttyS0,115200n8.

Comment 7 yuliu 2014-09-11 06:20:28 UTC
Version:
rhel-guest-image-6.6-20140910.0.x86_64.qcow2

Steps:
1. #echo asdfasfasdf >/dev/ttyS0
asdfasfasdf
2. # echo adsfasfasdf >/dev/console
adsfasfasdf
we can see both ttyS0 and console are output to console.

Verified as above.

Comment 9 errata-xmlrpc 2014-10-22 18:43:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2014-1697.html