summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Mouton <smouton@chef.io>2019-01-07 09:53:33 -0600
committerGavin Reynolds <gavin@chef.io>2019-03-04 22:10:22 +0100
commit88af7519a99993dd6afbd19e61cd804cd67151fa (patch)
treea3da2e5b1c4e538666be817f3c5538985d12dac2
parent188dfc83bec9d9e7075e1cf19e1eb43d7b11e74d (diff)
downloadchef-88af7519a99993dd6afbd19e61cd804cd67151fa.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]}")