[rear-devel] [rear/rear] 3050f1: Add `console=tty0` to cmdline only if no real seri...

Johannes Meixner noreply at github.com
Wed Feb 2 13:20:52 CET 2022


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 3050f16229bc3788600cab53de9ffd2b5a503cdd
      https://github.com/rear/rear/commit/3050f16229bc3788600cab53de9ffd2b5a503cdd
  Author: Lukáš Zaoral <lzaoral at redhat.com>
  Date:   2022-01-26 (Wed, 26 Jan 2022)

  Changed paths:
    M usr/share/rear/lib/serial-functions.sh

  Log Message:
  -----------
  Add `console=tty0` to cmdline only if no real serial device was found

Changes usr/share/rear/lib/serial-functions.sh.

Without this change console=tty0 would be added whenever the last
device returned by get_serial_console_devices was not classified
as a real serial device even though the previous ones were.

Thus, the cmdline on a machine with ttyS[0-3] where only ttyS0
is real was changed to

console=ttyS0,115200 console=tty0

In such case, only kernel messages would appear on ttyS0 [1].

[1] https://www.kernel.org/doc/html/latest/admin-guide/serial-console.html


  Commit: edbe2ee9de54ed4e98424094c71bf4a7ba6bd69a
      https://github.com/rear/rear/commit/edbe2ee9de54ed4e98424094c71bf4a7ba6bd69a
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M usr/share/rear/lib/serial-functions.sh

  Log Message:
  -----------
  Merge pull request #2749 from lzaoral/fix-serial-consoles

In the function cmdline_add_console in lib/serial-functions.sh
add `console=tty0` as fallback to cmdline only if no real serial device was found
otherwise on a machine with e.g. ttyS0 and ttyS1 where only ttyS0 is real
only kernel messages (but nothing else) would appear on ttyS0,
see https://github.com/rear/rear/pull/2749


Compare: https://github.com/rear/rear/compare/3566a24d2cc6...edbe2ee9de54


More information about the rear-devel mailing list