From 3740cc0504a1b2b5b3a958e610996a6b50f75938 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Wed, 6 Aug 2014 18:34:19 -0700 Subject: [PATCH] onmetal: Up the TIMEOUT and TOTALTIMEOUT settings Bump TIMEOUT to 15 seconds and TOTALTIMEOUT to 2 minutes --- build_library/vm_image_util.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 981711186d..4aaf227e8c 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -333,8 +333,13 @@ _run_box_fs_hook() { _run_onmetal_fs_hook() { # HACKITY HACK until OEMs can customize bootloader configs local arg='8250.nr_uarts=5 console=ttyS4,115200n8 modprobe.blacklist=mei_me' + local timeout=150 + local totaltimeout=1200 sudo sed -i "${VM_TMP_ROOT}/boot/efi/syslinux/boot_kernel.cfg" \ -e 's/console=[^ ]*//g' -e "s/\\(append.*$\\)/\\1 ${arg}/" + sudo sed -i "${VM_TMP_ROOT}/boot/efi/syslinux/syslinux.cfg" \ + -e "s/^TIMEOUT [0-9]*/TIMEOUT ${timeout}/g" \ + -e "s/^TOTALTIMEOUT [0-9]*/TOTALTIMEOUT ${totaltimeout}/g" } # Write the vm disk image to the target directory in the proper format