X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/29c77d24f629154734608673c37506210a3fabba..3d2e0b4fc4b43a257f31c8d69bd672a98b8f14ec:/cookbooks/devices/templates/default/udev.rules.erb diff --git a/cookbooks/devices/templates/default/udev.rules.erb b/cookbooks/devices/templates/default/udev.rules.erb index 6a8560026..26fcec1da 100644 --- a/cookbooks/devices/templates/default/udev.rules.erb +++ b/cookbooks/devices/templates/default/udev.rules.erb @@ -24,7 +24,7 @@ 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 -%> +<% if node[:lsb][:release] == "12.04" && Chef::Util.compare_versions(node[:kernel][:release], [3, 11]) >= 0 -%> # Rule from 14.04 udev for 12.04 machines running newer kernels ACTION=="add", SUBSYSTEM=="cpu", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -bv $env{MODALIAS}"