projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2ee73f
)
Try to get vmbuild to wait for virtualbox to terminate.
author
Carl Hetherington
<cth@carlh.net>
Fri, 2 Oct 2015 08:48:24 +0000
(09:48 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 2 Oct 2015 08:48:24 +0000
(09:48 +0100)
vmbuild
patch
|
blob
|
history
diff --git
a/vmbuild
b/vmbuild
index 3a2209d8565753bf6bdc2402c7a6ca172e967447..1c08f2c3219bdc19a412a933819ba05b96bc6958 100755
(executable)
--- a/
vmbuild
+++ b/
vmbuild
@@
-20,6
+20,7
@@
else
fi
nohup vboxheadless --startvm fedora-22-$bits &
+vbox=$!
sleep 10
ssh -p $port carl@localhost "rm -rf fedora-*"
ssh -p $port carl@localhost cdist -p dcpomatic -c $checkout -t host package
@@
-27,3
+28,6
@@
if [ "$output" != "" ]; then
scp -P $port carl@localhost:fedora-22-$bits/* $output/
fi
ssh -p $port carl@localhost "sudo /sbin/poweroff"
+while [[ ( -d /proc/$vbox ) && ( -z `grep zombie /proc/$vbox/status` ) ]]; do
+ sleep 1
+done