]> git.openstreetmap.org Git - chef.git/commitdiff
Add ghes.disable=1 to boot options on ramoth
authorTom Hughes <tom@compton.nu>
Tue, 30 Jun 2015 19:22:17 +0000 (20:22 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 30 Jun 2015 19:22:17 +0000 (20:22 +0100)
cookbooks/hardware/attributes/default.rb
cookbooks/hardware/templates/default/grub.erb
roles/ramoth.rb

index 174190f3fc42b923883708d833bd5dbf2cf16b65..b558f9d8e3cc7792e7e077f05ece3a5770d694c6 100644 (file)
@@ -1,4 +1,5 @@
 default[:hardware][:modules] = %w(loop lp rtc)
+default[:hardware][:grub][:cmdline] = %w(nomodeset)
 default[:hardware][:sensors] = {}
 
 if node[:dmi] && node[:dmi][:system]
index 4042a813bbc767e40a5461630d77179e48279421..1c19cf684a2f1814e9965d1179ef3eb01ed7934f 100644 (file)
@@ -15,9 +15,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)
index 32a0499c9f7d44b970620192d5bc1a9e7f19ce9b..896d99c6deb9b80ed8e3e15980057d51ca36eaea 100644 (file)
@@ -28,6 +28,9 @@ default_attributes(
     }
   },
   :hardware => {
+    :grub => {
+      :cmdline => %w(ghes.disable=1)
+    },
     :watchdog => "w83627hf_wdt"
   },
   :munin => {