X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c215bfbfd1fec83d7980e77037ef8c1bd1937d6d..0df4f2f9bbec37153bdb6c92a38ed324409fa6a7:/cookbooks/devices/recipes/default.rb diff --git a/cookbooks/devices/recipes/default.rb b/cookbooks/devices/recipes/default.rb index c19acda9b..9bcaf898f 100644 --- a/cookbooks/devices/recipes/default.rb +++ b/cookbooks/devices/recipes/default.rb @@ -41,9 +41,11 @@ template "/etc/modprobe.d/nvme.conf" do owner "root" group "root" mode "644" - only_if { File.exist?("/sys/module/nvme/parameters/poll_queues") } + 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"