X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..22fd94d702ef81e55f4b0832187d2bf866d00ba7:/cookbooks/devices/recipes/default.rb diff --git a/cookbooks/devices/recipes/default.rb b/cookbooks/devices/recipes/default.rb index 8572dd232..9bcaf898f 100644 --- a/cookbooks/devices/recipes/default.rb +++ b/cookbooks/devices/recipes/default.rb @@ -35,3 +35,19 @@ template "/etc/udev/rules.d/99-chef.rules" do mode "644" notifies :run, "execute[udevadm-trigger]" end + +template "/etc/modprobe.d/nvme.conf" do + source "nvme.conf.erb" + owner "root" + group "root" + mode "644" + only_if { ::File.exist?("/sys/module/nvme/parameters/poll_queues") } +end + +package "initramfs-tools" + +execute "update-initramfs" do + action :nothing + command "/usr/sbin/update-initramfs -u" + subscribes :run, "template[/etc/modprobe.d/nvme.conf]" +end