X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2f52e9c16b325414f11b8cd0021c05990103c8a9..e8b99de75aefd9d6e0412711f8d41e6b24486b72:/cookbooks/devices/recipes/default.rb diff --git a/cookbooks/devices/recipes/default.rb b/cookbooks/devices/recipes/default.rb index 6c859aa77..9bcaf898f 100644 --- a/cookbooks/devices/recipes/default.rb +++ b/cookbooks/devices/recipes/default.rb @@ -20,7 +20,7 @@ cookbook_file "/usr/local/bin/fixeep-82574_83.sh" do owner "root" group "root" - mode 0o755 + mode "755" end execute "udevadm-trigger" do @@ -32,6 +32,22 @@ template "/etc/udev/rules.d/99-chef.rules" do source "udev.rules.erb" owner "root" group "root" - mode 0o644 + 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