From 7bccaa5c44b074c0e829e91e7ca330512a881df3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 6 Feb 2015 11:38:30 +0100 Subject: chroot-installation: yet more debug --- bin/chroot-installation.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index 8358005f..01b0c7c7 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -49,6 +49,7 @@ cleanup_all() { } execute_ctmpfile() { + set -x chmod +x $CTMPFILE set -o pipefail # see eg http://petereisentraut.blogspot.com/2010/11/pipefail.html if ! $(sudo chroot $CHROOT_TARGET $TMPFILE 2>&1 | tee $TMPLOG) ; then @@ -63,6 +64,8 @@ execute_ctmpfile() { fi fi rm $CTMPFILE + set +o pipefail + set +x echo "Debug: This should only be printed on success." } -- cgit v1.2.3-70-g09d2