console redirection parameters are misleading

Bug #1887009 reported by Andrea Ieri
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-sysconfig
Fix Released
Medium
Unassigned

Bug Description

The charm sets the following GRUB_CMDLINE by default:

GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT console=tty0 console=ttyS0,115200 console=ttyS1,115200"

This may appear to be redirecting the console to both ttyS0 and ttyS1, but that's not true: the kernel will only output kernel messages on one device per type. Since the first one in the list wins, kernel messages will only appear on ttyS0 (and tty0, but that's because it's a different device type).

The rules governing console redirection can be found here:
https://www.kernel.org/doc/html/latest/admin-guide/serial-console.html

Related branches

Revision history for this message
Andrea Ieri (aieri) wrote :

In my testing "console=tty0 console=ttyS0,115200 console=ttyS1,115200" will also confusingly push foreground messages to vga instead of serial; this may be because the last device in the line (ttyS1) is not actually being used, so the logic reverts to the default, as if none of those options had been set.

Revision history for this message
Adam Dyess (addyess) wrote :

Andrea:
do you have a recommended change for this bug? Like a proper solution for the GRUB commandline?
Or a work around that seems to be working well?

Changed in charm-sysconfig:
status: New → Opinion
importance: Undecided → Medium
Revision history for this message
Adam Dyess (addyess) wrote :

please see this bug (1887012) which is similar but not quite the same and consider them at the same time

Changed in charm-sysconfig:
status: Opinion → Confirmed
Revision history for this message
Andrea Ieri (aieri) wrote :

fix proposed in linked MP

Celia Wang (ziyiwang)
Changed in charm-sysconfig:
status: Confirmed → Fix Released
milestone: none → 21.01
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.