diff options
author | Chibuikem Amaechi <cramaechi@me.com> | 2018-01-24 05:07:46 -0600 |
---|---|---|
committer | Chibuikem Amaechi <cramaechi@me.com> | 2018-01-29 23:09:32 -0600 |
commit | e9149a9a0b0b17e0c1ad38ec60d82ac07269d9df (patch) | |
tree | b8b31a798a67d965bd41a9393bb46ad45be595e3 | |
parent | 6ff560e7a36e92c24bbe2437face183263778f87 (diff) | |
download | chef-e9149a9a0b0b17e0c1ad38ec60d82ac07269d9df.tar.gz |
Update /etc/fstab on FreeBSD #4959
/etc/fstab contains: /source /destination nullfs defaults 0 0
This does not mount after reboot. It should be:
/source /destination nullfs rw 0 0
So "defaults" does not work on FreeBSD and must be replaced.
Signed-off-by: Chibuikem Amaechi <cramaechi@me.com>
-rw-r--r-- | lib/chef/provider/mount/mount.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index c3b1cc0141..9913916abc 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -158,7 +158,7 @@ class Chef disable_fs end ::File.open("/etc/fstab", "a") do |fstab| - fstab.puts("#{device_fstab} #{@new_resource.mount_point} #{@new_resource.fstype} #{@new_resource.options.nil? ? "defaults" : @new_resource.options.join(",")} #{@new_resource.dump} #{@new_resource.pass}") + fstab.puts("#{device_fstab} #{@new_resource.mount_point} #{@new_resource.fstype} #{@new_resource.options.nil? ? "rw" : @new_resource.options.join(",")} #{@new_resource.dump} #{@new_resource.pass}") Chef::Log.debug("#{@new_resource} is enabled at #{@new_resource.mount_point}") end end |