X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/69830edd35a089ff74ff5ba6d15c0425595648bd..918023e3720136ec21e9771792dbc3780774923f:/cookbooks/hardware/templates/default/grub.erb diff --git a/cookbooks/hardware/templates/default/grub.erb b/cookbooks/hardware/templates/default/grub.erb index 4042a813b..3db559191 100644 --- a/cookbooks/hardware/templates/default/grub.erb +++ b/cookbooks/hardware/templates/default/grub.erb @@ -1,7 +1,8 @@ # DO NOT EDIT - This file is being maintained by Chef -# Boot the first entry by default -GRUB_DEFAULT="0" +# Boot the first entry by default, unless we have configured +# it to boot a specific version. +GRUB_DEFAULT="<%= @entry %>" # Wait two seconds before booting the default entry GRUB_TIMEOUT="2" @@ -15,9 +16,9 @@ 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)