From: Grant Slater Date: Thu, 10 Jul 2014 09:51:51 +0000 (+0100) Subject: grub: disable infinite wait on failed boot X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/69830edd35a089ff74ff5ba6d15c0425595648bd grub: disable infinite wait on failed boot --- diff --git a/cookbooks/hardware/templates/default/grub.erb b/cookbooks/hardware/templates/default/grub.erb index 49343e9b0..4042a813b 100644 --- a/cookbooks/hardware/templates/default/grub.erb +++ b/cookbooks/hardware/templates/default/grub.erb @@ -21,7 +21,10 @@ GRUB_CMDLINE_LINUX="console=tty0 console=ttyS<%= @unit %>,115200n8 nomodeset" <% end -%> # Arguments to add to the kernel command line (except recovery entries) -GRUB_CMDLINE_LINUX_DEFAULT="" +GRUB_CMDLINE_LINUX_DEFAULT="panic=30" + +# Do not wait for infinite time on a failed boot +GRUB_RECORDFAIL_TIMEOUT=2 <% if @unit.nil? -%> # Send console output to the screen