summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-26 11:44:38 -0700
committerGitHub <noreply@github.com>2018-03-26 11:44:38 -0700
commitcbf5e258dd240a1afd55d4b4e45440e36e30acfa (patch)
treeeac4f02ee47719596eb4411c090b966d800ca789
parent758258b719337cd19ce64cdff5345b5dfe0ad286 (diff)
parent689f4cb742beedbee5d0bce643f82ffc214aef25 (diff)
downloadchef-cbf5e258dd240a1afd55d4b4e45440e36e30acfa.tar.gz
Merge pull request #7030 from chef/tm/fix_mount_options
Ensure that we pass the correct options to mount
-rw-r--r--lib/chef/provider/mount/solaris.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/mount/solaris.rb b/lib/chef/provider/mount/solaris.rb
index 750504237a..095c07432a 100644
--- a/lib/chef/provider/mount/solaris.rb
+++ b/lib/chef/provider/mount/solaris.rb
@@ -74,8 +74,8 @@ class Chef
end
def mount_fs
- actual_options = options || []
- actual_options.delete("noauto")
+ actual_options = native_options(options)
+ actual_options.delete("-")
command = "mount -F #{fstype}"
command << " -o #{actual_options.join(',')}" unless actual_options.empty?
command << " #{device} #{mount_point}"
@@ -88,8 +88,8 @@ class Chef
def remount_fs
# FIXME: Should remount always do the remount or only if the options change?
- actual_options = options || []
- actual_options.delete("noauto")
+ actual_options = native_options(options)
+ actual_options.delete("-")
mount_options = actual_options.empty? ? "" : ",#{actual_options.join(',')}"
shell_out!("mount -o remount#{mount_options} #{mount_point}")
end