X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..e8b99de75aefd9d6e0412711f8d41e6b24486b72:/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