From 7dfbb756921020fab762bc6331af5935c9bd5763 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 12 Nov 2019 13:41:50 +0000 Subject: [PATCH] Don't remount /dev/shm on change The chef remount action actually does unmount+mount not remount and triggers unconditionally. --- cookbooks/hardware/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index ff02962db..454386459 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -538,7 +538,7 @@ end 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]}" -- 2.39.5