From 29c77d24f629154734608673c37506210a3fabba Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 24 Jul 2014 12:23:10 +0100 Subject: [PATCH] Autoload CPU supprt modules correctly on 12.04 machines with new kernels --- cookbooks/devices/templates/default/udev.rules.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/devices/templates/default/udev.rules.erb b/cookbooks/devices/templates/default/udev.rules.erb index 8f40e5b7d..6a8560026 100644 --- a/cookbooks/devices/templates/default/udev.rules.erb +++ b/cookbooks/devices/templates/default/udev.rules.erb @@ -24,3 +24,8 @@ ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="<%= device[:bus] %>", ENV{ID_SE <% end -%> <% end -%> <% end -%> +<% if node[:lsb][:release] == "12.04" && node[:kernel][:release].to_f >= 3.11 -%> + +# Rule from 14.04 udev for 12.04 machines running newer kernels +ACTION=="add", SUBSYSTEM=="cpu", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -bv $env{MODALIAS}" +<% end -%> -- 2.39.5