From 0c03ad18fc15e9958ab0908c641e4a71486351f4 Mon Sep 17 00:00:00 2001 From: Raman Nanda Date: Wed, 11 Sep 2013 17:22:13 -0400 Subject: [PATCH 1/2] Updating for NFS Fix --- plugins/hosts/bsd/host.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/hosts/bsd/host.rb b/plugins/hosts/bsd/host.rb index a8dc08504..1cbbdf9c8 100644 --- a/plugins/hosts/bsd/host.rb +++ b/plugins/hosts/bsd/host.rb @@ -122,7 +122,9 @@ module VagrantPlugins output.split("\n").each do |line| line.gsub!('"', '\"') line.gsub!("'", "'\\\\''") - system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"]) + # system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"]) + # Update to Bypass Security Check + system(%Q[sudo -s -- "echo '#{line}' >> /etc/exports"]) end # We run restart here instead of "update" just in case nfsd From 1566280061cb60e3450b31c3ae0f90c2007a4441 Mon Sep 17 00:00:00 2001 From: Raman Nanda Date: Wed, 11 Sep 2013 17:57:54 -0400 Subject: [PATCH 2/2] Cleanup for Pull Request --- plugins/hosts/bsd/host.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/hosts/bsd/host.rb b/plugins/hosts/bsd/host.rb index 1cbbdf9c8..c31b3e6ea 100644 --- a/plugins/hosts/bsd/host.rb +++ b/plugins/hosts/bsd/host.rb @@ -122,8 +122,6 @@ module VagrantPlugins output.split("\n").each do |line| line.gsub!('"', '\"') line.gsub!("'", "'\\\\''") - # system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"]) - # Update to Bypass Security Check system(%Q[sudo -s -- "echo '#{line}' >> /etc/exports"]) end