From 6895593eadba155bea627929f3eb27e48ccc39eb Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Wed, 14 Sep 2016 15:46:27 -0700 Subject: [PATCH] coreos-base/oem-ec2-compat: use ttyS0 for console On HVM instances, tty0 is actually a graphical interface. Since the interface exposed is non-interactive, it's not possible to scroll through the logs, which results in lots of missing information. Setting the console to ttyS0, on the other hand, sends the output to the system log. PV instances don't have this issue since they are xen-based and use hvc0. --- .../coreos-base/oem-ec2-compat/files/grub-ec2.cfg | 7 +++++++ ...ec2-compat-0.0.6.ebuild => oem-ec2-compat-0.0.7.ebuild} | 0 2 files changed, 7 insertions(+) rename sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/{oem-ec2-compat-0.0.6.ebuild => oem-ec2-compat-0.0.7.ebuild} (100%) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/files/grub-ec2.cfg b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/files/grub-ec2.cfg index 1d5517e5ed..12caf6e64c 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/files/grub-ec2.cfg +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/files/grub-ec2.cfg @@ -5,3 +5,10 @@ set oem_id="ec2" # Blacklist the Xen framebuffer module so it doesn't get loaded at boot # Disable `ens3` style names, so eth0 is used for both ixgbevf or xen. set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0" + +if [ "$grub_platform" = pc ]; then + set linux_console="console=ttyS0,115200n8" + serial com0 --speed=115200 --word=8 --parity=no + terminal_input serial_com0 + terminal_output serial_com0 +fi diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.0.6.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.0.7.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.0.6.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.0.7.ebuild