summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Mouton <smouton@chef.io>2019-01-07 09:53:33 -0600
committerShaun Mouton <smouton@chef.io>2019-01-07 09:53:33 -0600
commitc55c42a95dd9e7bb1ac4917dbea262da5ed00f9b (patch)
tree2f4bdc4756bf36235865e64c328289f5bb1dec8c
parent45d7d458bf74d3979b0b8ca2172996d6cba9aace (diff)
downloadchef-fix-aix-mount-error.tar.gz
fix aix mount bugfix-aix-mount-error
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]}")