Confine to existence of /proc/modules, not kernel.

This commit is contained in:
Greg Dallavalle 2012-10-17 16:37:09 -05:00
parent 48281cb8de
commit f2c6d3b194

View File

@ -14,7 +14,7 @@ def get_modules
end
Facter.add("kernel_modules") do
confine :kernel => :linux
confine :exists => "/proc/modules"
setcode do
modules = get_modules
modules.to_a.join(",")