]> git.openstreetmap.org Git - chef.git/commitdiff
Don't try and update grub under test kitchen
authorTom Hughes <tom@compton.nu>
Wed, 23 Sep 2020 20:40:57 +0000 (21:40 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 23 Sep 2020 20:40:57 +0000 (21:40 +0100)
cookbooks/hardware/recipes/default.rb

index 27046a1f78c3e5fa067ad2fd644f2d6520f94d4c..711fa45712420f6a8d0302671f3d32dcc5acfbda 100644 (file)
@@ -141,6 +141,7 @@ if File.exist?("/etc/default/grub")
   execute "update-grub" do
     action :nothing
     command "/usr/sbin/update-grub"
   execute "update-grub" do
     action :nothing
     command "/usr/sbin/update-grub"
+    not_if { ENV["TEST_KITCHEN"] }
   end
 
   template "/etc/default/grub" do
   end
 
   template "/etc/default/grub" do