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
This commit is contained in:
parent
807e89f063
commit
1ec93f43a8
@ -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:-}
|
||||
|
Loading…
Reference in New Issue
Block a user