From 1dcd593bc3d7a63527fc4d7ce3a09bbcb504310f Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 21 Jun 2017 12:26:11 +0200 Subject: [PATCH] mxgrub: Tell Linux to log to serial console MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To debug Linux kernel double crashes for the MXQ servers, they are now connected over serial console. As the Dell firmware, and GRUB use BIOS calls to print messages, these are already transmitted over serial console thanks to some Dell BIOS magic. But, luckily, the Linux kernel doesn’t do that. So Linux has to be told to write messages to the serial console. Omitting the `console=tty0` would cause no Linux messages to be printed to the VGA connection, which we use for the KVMs, so add that too. --- mxgrub/mxgrub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxgrub/mxgrub b/mxgrub/mxgrub index 9edbf6e..5c80f86 100755 --- a/mxgrub/mxgrub +++ b/mxgrub/mxgrub @@ -168,7 +168,7 @@ sub update_grub_cfg { for my $label (@MARIUX) { my $image=label_to_image($label); - $kernellist.="\tmenuentry \"$label\" --unrestricted { save_env chosen ; linux /boot/$image crashkernel=256M root=LABEL=root ro ; initrd /boot/grub/initramfs.igz }\n"; + $kernellist.="\tmenuentry \"$label\" --unrestricted { save_env chosen ; linux /boot/$image crashkernel=256M root=LABEL=root ro console=ttyS1,115200n8 console=tty0 ; initrd /boot/grub/initramfs.igz }\n"; } my $GRUB_CFG_NEW=<<"EOF";