guests/linux: fail after a number of attempts

This commit is contained in:
Mitchell Hashimoto 2013-09-20 17:52:36 -07:00
parent 62e357ffcd
commit 4d03a7359e
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,11 @@ module VagrantPlugins
break if success
attempts += 1
raise Vagrant::Errors::LinuxMountFailed, :command => mount_commands.join("\n")
if attempts > 10
raise Vagrant::Errors::LinuxMountFailed,
command: mount_commands.join("\n")
end
sleep 2
end