From ad21d1a78e83ea8db1c87b65e646215d9cce8198 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Wed, 26 Oct 2011 12:39:00 -0700 Subject: [PATCH] raise an error if stack fails in lxc --- tools/build_lxc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/build_lxc.sh b/tools/build_lxc.sh index 9cbbedf..b629183 100755 --- a/tools/build_lxc.sh +++ b/tools/build_lxc.sh @@ -301,6 +301,11 @@ if [ "$WAIT_TILL_LAUNCH" = "1" ]; then done kill $TAIL_PID + + if grep -q "stack.sh failed" $ROOTFS/$DEST/run.sh.log; then + exit 1 + fi + echo "" echo "Finished - Zip-a-dee Doo-dah!" fi