From 1ec93f43a8736171cb78382fd6184f03c001771b Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Thu, 5 Feb 2015 11:53:48 -0600 Subject: [PATCH] Add no_timer_check to vm grub cmdline no_timer_check prevents the kernel from probing for hardware timers, which doesn't make sense in a virtual environment and can cause hangs at boot [1] [2]. [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1082030 [2]: https://bugzilla.redhat.com/show_bug.cgi?id=1102592 Change-Id: I1c42cc7fae7bba1dc6f4feb69f13760f4312e4d1 --- elements/vm/finalise.d/51-bootloader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/vm/finalise.d/51-bootloader b/elements/vm/finalise.d/51-bootloader index d897eb70..bb9d5411 100755 --- a/elements/vm/finalise.d/51-bootloader +++ b/elements/vm/finalise.d/51-bootloader @@ -120,7 +120,7 @@ function install_grub2 { echo 'GRUB_TERMINAL="serial console"' >>/etc/default/grub echo 'GRUB_GFXPAYLOAD_LINUX=text' >>/etc/default/grub - echo 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200"' >>/etc/default/grub + echo 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200 no_timer_check"' >>/etc/default/grub echo 'GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"' >>/etc/default/grub GRUB_MKCONFIG="grub2-mkconfig -o $GRUB_CFG" DISTRO_NAME=${DISTRO_NAME:-}