X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/eee918711444ec8414ac795345e5c6b38864118e..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/hardware/templates/default/grub.erb?ds=sidebyside diff --git a/cookbooks/hardware/templates/default/grub.erb b/cookbooks/hardware/templates/default/grub.erb index 49343e9b0..1c19cf684 100644 --- a/cookbooks/hardware/templates/default/grub.erb +++ b/cookbooks/hardware/templates/default/grub.erb @@ -15,13 +15,16 @@ GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` # Arguments to add to the kernel command line (all entries) <% if @unit.nil? -%> -GRUB_CMDLINE_LINUX="nomodeset" +GRUB_CMDLINE_LINUX="<%= node[:hardware][:grub][:cmdline].join(" ") %>" <% else -%> -GRUB_CMDLINE_LINUX="console=tty0 console=ttyS<%= @unit %>,115200n8 nomodeset" +GRUB_CMDLINE_LINUX="console=tty0 console=ttyS<%= @unit %>,115200n8 <%= node[:hardware][:grub][:cmdline].join(" ") %>" <% 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