From: Tom Hughes Date: Wed, 23 Sep 2020 20:40:57 +0000 (+0100) Subject: Don't try and update grub under test kitchen X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/9917940ecf5a76f484fcab9f49f41d2bdf4c69f3 Don't try and update grub under test kitchen --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 27046a1f7..711fa4571 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -141,6 +141,7 @@ if File.exist?("/etc/default/grub") execute "update-grub" do action :nothing command "/usr/sbin/update-grub" + not_if { ENV["TEST_KITCHEN"] } end template "/etc/default/grub" do