]> git.openstreetmap.org Git - chef.git/commitdiff
Don't remount /dev/shm on change
authorTom Hughes <tom@compton.nu>
Tue, 12 Nov 2019 13:41:50 +0000 (13:41 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 12 Nov 2019 13:41:50 +0000 (13:41 +0000)
The chef remount action actually does unmount+mount not remount
and triggers unconditionally.

cookbooks/hardware/recipes/default.rb

index ff02962dbcb5e6966f3262aafa5c11b2c47113aa..454386459ce800658b4cd5fe571fdc8214ed4354 100644 (file)
@@ -538,7 +538,7 @@ end
 
 if node[:hardware][:shm_size]
   mount "/dev/shm" do
 
 if node[:hardware][:shm_size]
   mount "/dev/shm" do
-    action [:mount, :remount, :enable]
+    action [:mount, :enable]
     device "tmpfs"
     fstype "tmpfs"
     options "rw,nosuid,nodev,size=#{node[:hardware][:shm_size]}"
     device "tmpfs"
     fstype "tmpfs"
     options "rw,nosuid,nodev,size=#{node[:hardware][:shm_size]}"