Don't try and enable mcelog on Ubuntu 18.04
authorTom Hughes <tom@compton.nu>
Thu, 7 Jun 2018 14:13:15 +0000 (15:13 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 7 Jun 2018 14:13:15 +0000 (15:13 +0100)
cookbooks/hardware/attributes/default.rb

index fb19506f4be941901385794c0a9133645ff738c5..f270740826bb04025a5375fd62763c039f230154 100644 (file)
@@ -7,7 +7,7 @@ default[:hardware][:modules] = if node[:lsb][:release].to_f >= 16.04
 default[:hardware][:grub][:cmdline] = %w[nomodeset]
 default[:hardware][:sensors] = {}
 
-default[:hardware][:mcelog][:enabled] = true
+default[:hardware][:mcelog][:enabled] = node[:lsb][:release].to_f < 18.04
 
 if node[:dmi] && node[:dmi][:system]
   case node[:dmi][:system][:manufacturer]