summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Mouton <smouton@chef.io>2019-01-07 09:53:33 -0600
committerTim Smith <tsmith@chef.io>2019-03-04 17:06:35 -0800
commit23d5fbaa88a67ef8ff8e7b6199d12b2d965b7329 (patch)
tree34c90a967c16845196a2a7d089b69cad8b28e5ec
parent1c8d27bc882db05565e240b814b7ff2f5faa0fc1 (diff)
downloadchef-23d5fbaa88a67ef8ff8e7b6199d12b2d965b7329.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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/aix.rb b/lib/chef/provider/mount/aix.rb
index 9614fc1e7f..70aab35d8f 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]}")