From c55c42a95dd9e7bb1ac4917dbea262da5ed00f9b Mon Sep 17 00:00:00 2001 From: Shaun Mouton Date: Mon, 7 Jan 2019 09:53:33 -0600 Subject: 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 --- lib/chef/provider/mount/aix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]}") -- cgit v1.2.1