From b30eacf94fdeed0a29add62f1a3ee432f05b2e23 Mon Sep 17 00:00:00 2001 From: BlackEagle Date: Fri, 17 Jan 2014 10:54:17 +0100 Subject: [PATCH] nfs_apply :: exportfs sometimes leaves exports behind On my machine i had a case where /etc/exports was updated but the old exports were still there. This was leading to "exportfs: duplicated export entries" and eventually leading to nfs being not available for the box. changing the command exportfs -r to exportfs -ar seems to address this issue. Signed-off-by: BlackEagle --- plugins/hosts/linux/cap/nfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/linux/cap/nfs.rb b/plugins/hosts/linux/cap/nfs.rb index cb8288ef4..f45899a05 100644 --- a/plugins/hosts/linux/cap/nfs.rb +++ b/plugins/hosts/linux/cap/nfs.rb @@ -8,7 +8,7 @@ module VagrantPlugins extend Vagrant::Util::Retryable def self.nfs_apply_command(env) - "/usr/bin/exportfs -r" + "/usr/bin/exportfs -ar" end def self.nfs_check_command(env)