diff options
author | Shaun Mouton <smouton@chef.io> | 2019-01-07 09:53:33 -0600 |
---|---|---|
committer | Shaun Mouton <smouton@chef.io> | 2019-01-07 09:53:33 -0600 |
commit | c55c42a95dd9e7bb1ac4917dbea262da5ed00f9b (patch) | |
tree | 2f4bdc4756bf36235865e64c328289f5bb1dec8c | |
parent | 45d7d458bf74d3979b0b8ca2172996d6cba9aace (diff) | |
download | chef-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.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 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]}") |