From e288a5b7327ea3e8ae59c9be7f549fe708cb4bef Mon Sep 17 00:00:00 2001 From: Andy Fowler Date: Tue, 8 Oct 2019 10:53:56 -0400 Subject: [PATCH] `df` -> `/bin/df` to use macOS version Thanks, @AntonioMeireles! --- plugins/hosts/bsd/cap/nfs.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/hosts/bsd/cap/nfs.rb b/plugins/hosts/bsd/cap/nfs.rb index 33533022c..86bf7a600 100644 --- a/plugins/hosts/bsd/cap/nfs.rb +++ b/plugins/hosts/bsd/cap/nfs.rb @@ -214,9 +214,9 @@ module VagrantPlugins def self.nfs_check_folders_for_apfs(folders) folders.each do |_, opts| - # check to see if this path is mounted in an APFS filesystem, and if it's in the - # firmlink which must be prefixed. - is_mounted_apfs_command = "df -t apfs #{opts[:hostpath]}" + # check to see if this path is mounted in an APFS filesystem, and if it's under the + # firmlink which must be prefixed. we need to use the OS X df — GNU won't notice. + is_mounted_apfs_command = "/bin/df -t apfs #{opts[:hostpath]}" result = Vagrant::Util::Subprocess.execute(*Shellwords.split(is_mounted_apfs_command)) if (result.stdout.include? OSX_FIRMLINK_HACK) opts[:hostpath].prepend(OSX_FIRMLINK_HACK)