Skip to content

Instantly share code, notes, and snippets.

@imbriaco
Created March 4, 2009 16:27
Show Gist options
  • Save imbriaco/73897 to your computer and use it in GitHub Desktop.
Save imbriaco/73897 to your computer and use it in GitHub Desktop.
execute "modprobe" do
command "/sbin/depmod -a"
action :run
only_if do
File.exist?("/lib/modules/#{@node[:kernel][:release]}/extra/kvm.ko") &&
( File.mtime("/lib/modules/#{@node[:kernel][:release]}/extra/kvm.ko") >
File.mtime("/lib/modules/#{@node[:kernel][:release]}/modules.dep") )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment