Bugzilla – Bug 681825
console handling problems running mainline < 2.6.38 kernels
Last modified: 2011-04-07 07:23:39 UTC
Created attachment 420841 [details] free sample Kernels < 2.6.38 do not have TIOCGDEV ioctl support, which is causing boot time console woes. Boxen boot fine, _but_ all boot scripts do not run, eg my kbd may or may not be left as a U.S. kbd vs DE, box boots to init 5, but may or may not enter X/KDE. What is on the console is a mess, see attachment. Severity of mess left over depends on kernel version booted, and perhaps configuration. To trigger: remove "quiet" from commandline, add console=ttyS0... console=tty I have now also seen the kbd/X problem minus the console mess caused by missing TIOCGDEV support in kernel-default-2.6.38-18.1.x86_64, and I saw it in kernel-desktop-2.6.37.1-1.2.2.x86_64, so problem is not limited to TIOCGDEV, something else is going on as well. TIOCGDEV support now being required hinders git bisections, regression testing etc, where the user will have to boot/use mainline kernels. 'course nothing is hitting logs. I've verified that the mess is caused by missing TIOCGDEV by adding it to a couple mainline kernels. This report is coming from 2.6.33.8 with support added. So far, seen nothing but clean boots with a patched kernel, BUT, as noted I have seen part of the total problem in suse kernels WITH support. Excerpts from attachment: showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel ... INIT: Entering runlevel: 5 blogd: can not open /dev/tty: No such device or address ... Starting syslog services done blogd: Can not read from fd 0: Input/output error ... tcsetattr: Invalid argument etc etc etc... a mess
I'm confused by this report. We always provided TIOCGDEV as a part of our kernels by patches.fixes/tiocgdev. The problem lays in userspace -> reassigning.
(In reply to comment #2) > I'm confused by this report. We always provided TIOCGDEV as a part of our > kernels by patches.fixes/tiocgdev. The problem lays in userspace -> > reassigning. Yes, this is a userspace issue new to 11.4.
Try update to *latest* sysvinit-tools, from changelog: Fri Mar 25 2011 werner@suse.de - Fix triggered endless loop in blogd (bnc#642289) * Writing on tty0 caused blogd to re-read its own messages * The usage of ttyname(3) on /dev/console can fail *** This bug has been marked as a duplicate of bug 642289 ***