diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-26 11:44:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 11:44:38 -0700 |
commit | cbf5e258dd240a1afd55d4b4e45440e36e30acfa (patch) | |
tree | eac4f02ee47719596eb4411c090b966d800ca789 | |
parent | 758258b719337cd19ce64cdff5345b5dfe0ad286 (diff) | |
parent | 689f4cb742beedbee5d0bce643f82ffc214aef25 (diff) | |
download | chef-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.rb | 8 |
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 |