From 0bf5a3b3134557c9dc52413bf4165991855991c3 Mon Sep 17 00:00:00 2001 From: James Belchamber Date: Fri, 8 Aug 2014 15:36:56 +0100 Subject: remount now honours options --- lib/chef/provider/mount/mount.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1