Skip to content

Commit

Permalink
mxgrub: Default to ttyS0 for serial console instead of ttyS1
Browse files Browse the repository at this point in the history
We started to use the serial console for debugging for the Dell
PowerEdge R910 and R930, which assign `ttyS1` to the serial console on
the back, as they also have, I think, a serial port on the front.

Unfortunately, Linux does not allow to change the serial console port at
run-time, so the set value on the Linux kernel command line matters.

Most systems, including desktops, often only have one port, or the port,
we are interested in, so it’s `ttyS0` in Linux.

Therefore, change the default to `ttyS0` to cover more systems.
  • Loading branch information
pmenzel committed Jul 2, 2020
1 parent ae75fce commit 636f037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ sub scan_mariux {
}
}

our $KERNEL_PARAMETER="ro crashkernel=256M console=ttyS1,115200n8 console=tty0 init=/bin/systemd audit=0 random.trust_cpu=on";
our $KERNEL_PARAMETER="ro crashkernel=256M console=ttyS0,115200n8 console=tty0 init=/bin/systemd audit=0 random.trust_cpu=on";

sub update_grub_cfg {
my $kernellist='';
Expand Down

0 comments on commit 636f037

Please sign in to comment.