X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d1be18e9426db54d3cf367855ee95fd8ed117e3b..86d35f661934c33b483b07018d1b9c1a063ccbfc:/cookbooks/hardware/attributes/default.rb?ds=sidebyside diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index 26f126abd..81416582d 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -1,6 +1,10 @@ -default[:hardware][:modules] = %w(loop lp rtc) +default[:hardware][:modules] = if node[:lsb][:release].to_f >= 16.04 + %w(lp) + else + %w(loop lp rtc) + end + default[:hardware][:grub][:cmdline] = %w(nomodeset) -default[:hardware][:grub][:kernel] = :latest default[:hardware][:sensors] = {} if node[:dmi] && node[:dmi][:system]