class Chef::Resource::KernelModule
Public Instance Methods
Source
# File lib/chef/resource/kernel_module.rb, line 224 def initramfs_command if platform_family?("debian") "update-initramfs -u" else "dracut -f" end end
determine the correct command to regen the initramfs based on platform @return [String]
Source
# File lib/chef/resource/kernel_module.rb, line 234 def module_loaded? /^#{new_resource.modname}/.match?(::File.read("/proc/modules")) end
see if the module is listed in /proc/modules or not @return [Boolean]