]> git.openstreetmap.org Git - chef.git/blob - cookbooks/hardware/templates/default/grub.erb
Add ghes.disable=1 to boot options on ramoth
[chef.git] / cookbooks / hardware / templates / default / grub.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 # Boot the first entry by default
4 GRUB_DEFAULT="0"
5
6 # Wait two seconds before booting the default entry
7 GRUB_TIMEOUT="2"
8
9 # Display the menu straight away
10 GRUB_HIDDEN_TIMEOUT="0"
11 GRUB_HIDDEN_TIMEOUT_QUIET="true"
12
13 # Set the distribution name
14 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
15
16 # Arguments to add to the kernel command line (all entries)
17 <% if @unit.nil? -%>
18 GRUB_CMDLINE_LINUX="<%= node[:hardware][:grub][:cmdline].join(" ") %>"
19 <% else -%>
20 GRUB_CMDLINE_LINUX="console=tty0 console=ttyS<%= @unit %>,115200n8 <%= node[:hardware][:grub][:cmdline].join(" ") %>"
21 <% end -%>
22
23 # Arguments to add to the kernel command line (except recovery entries)
24 GRUB_CMDLINE_LINUX_DEFAULT="panic=30"
25
26 # Do not wait for infinite time on a failed boot
27 GRUB_RECORDFAIL_TIMEOUT=2
28
29 <% if @unit.nil? -%>
30 # Send console output to the screen
31 GRUB_TERMINAL="console"
32 <% else -%>
33 <% if node[:lsb][:release].to_f >= 12.04 -%>
34 # Send console output to the screen and serial port
35 GRUB_TERMINAL="console serial"
36 <% else -%>
37 # Send console output to the serial port
38 GRUB_TERMINAL="serial"
39 <% end -%>
40
41 # Configure the serial console
42 GRUB_SERIAL_COMMAND="serial --speed=<%= @speed %> --unit=<%= @unit %> --word=8 --parity=no --stop=1"
43 <% end -%>