Andrei Borzenkov wrote:
В Mon, 09 Mar 2015 10:52:52 +0100 Per Jessen <per@computer.org> пишет:
Andrei Borzenkov wrote:
В Mon, 09 Mar 2015 08:47:20 +0100 Per Jessen <per@computer.org> пишет:
Have checked, the kernel messages only go to the currently active console, not to every one. I have determined that I can control the messages by changing /proc/sys/kernel/printk, but I still don't know how to direct them to just one console (and always the same one).
Try passing console=tty1 on kernel command line.
Just tried it, didn't work - the messages still appear on the currently active/visible console. Did something change in this respect? I don't have reason to work on the physical console very much, but I don't remember this behaviour from older systems (this one is 13.1).
For all I remember kernel always printed messages on currently opened foreground tty by default. To change it use
/usr/sbin/klogconsole -r n
where n is tty number. May be it could be integrated in systemd (this is single ioctl after all).
I've found the issue - it's a matter of the printk levels. On an openSUSE 11.0 system, the default was "1 4 1 7", on a 13.1 system it's "7 4 1 7". That's why I'm seeing so much output. If that's intentional, it would sure make sense to direct it all to tty10. For myself, I'll adjust the printk levels. /Per -- Per Jessen, Zürich (12.9°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org