From 8b8c9619353dd4069238dd9aa7fb2fec59e6e383 Mon Sep 17 00:00:00 2001 From: Rudinei Goi Roecker Date: Tue, 20 Sep 2016 17:57:54 -0300 Subject: [PATCH] Fix non upstart linux nfs mounts --- plugins/guests/linux/cap/nfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/linux/cap/nfs.rb b/plugins/guests/linux/cap/nfs.rb index d47d53b98..f017499aa 100644 --- a/plugins/guests/linux/cap/nfs.rb +++ b/plugins/guests/linux/cap/nfs.rb @@ -38,7 +38,7 @@ module VagrantPlugins # Emit a mount event commands << <<-EOH.gsub(/^ {14}/, '') - if command -v /sbin/init && /sbin/init --version | grep upstart; then + if test -x /sbin/initctl && command -v /sbin/init && /sbin/init --version | grep upstart; then /sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=#{guest_path} fi EOH