summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorJames Belchamber <james@belchamber.com>2014-08-08 15:36:56 +0100
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-21 16:39:30 -0700
commit0bf5a3b3134557c9dc52413bf4165991855991c3 (patch)
treed33f74caa7d39d1a96469ad67cf073a24eeb98b1 /lib/chef
parentcd172c098e9311797c34ce00d08709af622750d1 (diff)
downloadchef-0bf5a3b3134557c9dc52413bf4165991855991c3.tar.gz
remount now honours options
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/provider/mount/mount.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 207b0cde6c..abfffaa60e 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -127,7 +127,11 @@ class Chef
end
def remount_command
- return "mount -o remount #{@new_resource.mount_point}"
+ if !(@new_resource.options.nil? || @new_resource.options.empty?)
+ return "mount -o remount,#{@new_resource.options.join(',')} #{@new_resource.mount_point}"
+ else
+ return "mount -o remount #{@new_resource.mount_point}"
+ end
end
def remount_fs