diff options
author | Shaun Mouton <smouton@chef.io> | 2019-01-07 09:53:33 -0600 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-03-06 20:48:42 -0800 |
commit | a0fa852130aec281caa0001b09fbdc92447b9c36 (patch) | |
tree | ee97d2230b3369b8be395c3b4b357b94066163a6 | |
parent | 6459960d388a8075d3c7cbc396c31af1456e50be (diff) | |
download | chef-a0fa852130aec281caa0001b09fbdc92447b9c36.tar.gz |
fix aix mount bug
Without a newline separating entries, AIX will not allow the entry
preceding the one managed by Chef to be mounted anymore - this
appears not to be an issue for already-mounted filesystems. See
Zendesk ticket 20952 for more details.
Signed-off-by: Shaun Mouton <smouton@chef.io>
-rw-r--r-- | lib/chef/provider/mount/aix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/aix.rb b/lib/chef/provider/mount/aix.rb index 4c2ddbe791..b5641ee246 100644 --- a/lib/chef/provider/mount/aix.rb +++ b/lib/chef/provider/mount/aix.rb @@ -164,7 +164,7 @@ class Chef disable_fs end ::File.open("/etc/filesystems", "a") do |fstab| - fstab.puts("#{@new_resource.mount_point}:") + fstab.puts("\n#{@new_resource.mount_point}:") if network_device? device_details = device_fstab.split(":") fstab.puts("\tdev\t\t= #{device_details[1]}") |