From 4d6a8aaf089f65a54a11579ed987447c710f9b45 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Mon, 1 Dec 2014 14:54:57 -0800 Subject: [PATCH] vm_image_util: use only ttyS0 for the console on Azure instances --- build_library/vm_image_util.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index f6a1e92885..c415f93604 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -424,6 +424,12 @@ _run_gce_fs_hook() { sudo sed -i "${VM_TMP_ROOT}/boot/syslinux/boot_kernel.cfg" \ -e 's/console=[^ ]*//g' -e "s/\\(append.*$\\)/\\1 ${arg}/" } +_run_azure_fs_hook() { + # HACKITY HACK until OEMs can customize bootloader configs + local arg='console=ttyS0,115200n8' + sudo sed -i "${VM_TMP_ROOT}/boot/syslinux/boot_kernel.cfg" \ + -e 's/console=[^ ]*//g' -e "s/\\(append.*$\\)/\\1 ${arg}/" +} # Write the vm disk image to the target directory in the proper format write_vm_disk() {