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