end
if node[:kernel] and node[:kernel][:modules]
- if node[:kernel][:modules].include?("mpt2sas")
+ raidmods = node[:kernel][:modules].keys & ["cciss", "hpsa", "mptsas", "mpt2sas", "megaraid_mm", "megaraid_sas", "aacraid"]
+
+ unless raidmods.empty?
default[:apt][:sources] |= [ "hwraid" ]
end
end