From dfc0748b7c6db926bdd198cc5c3a6f815b04dad1 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Tue, 15 Nov 2011 15:29:37 -0800 Subject: [PATCH] some fixes for lxc --- tools/build_lxc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/build_lxc.sh b/tools/build_lxc.sh index 9d8ce92..c5957b2 100755 --- a/tools/build_lxc.sh +++ b/tools/build_lxc.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Debug stuff +set -o errexit +set -o xtrace + # Sanity check if [ "$EUID" -ne "0" ]; then echo "This script must be run with root privileges." @@ -126,7 +130,7 @@ fi # Make sure that base requirements are installed chroot $CACHEDIR apt-get update chroot $CACHEDIR apt-get install -y --download-only `cat files/apts/* | grep NOPRIME | cut -d\# -f1` -chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | grep -v NOPRIME | cut -d\# -f1` +chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | grep -v NOPRIME | cut -d\# -f1` || true chroot $CACHEDIR pip install `cat files/pips/*` # Clean out code repos if directed to do so