Skip to content

Commit

Permalink
Pause for complete shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Oct 23, 2010
1 parent 0b9140c commit 71dfc76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-vagrant
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ do

# Shutdown the virtual machine.
eval "$SSH \"sudo shutdown -h now\""
until VBoxManage showvminfo "$VBOX" | grep "^State: *powered off"
do
sleep 1
done

# Now build the Vagrant box file.
vagrant package --base "$VBOX"
Expand Down
4 changes: 4 additions & 0 deletions build-vbox
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,9 @@ do

# Shutdown the virtual machine.
eval "$SSH \"sudo shutdown -h now\""
until VBoxManage showvminfo "$VBOX" | grep "^State: *powered off"
do
sleep 1
done

done

0 comments on commit 71dfc76

Please sign in to comment.