From 4f70cf4e61f5d31e9953ab293518f605245f779f Mon Sep 17 00:00:00 2001 From: "elston.lewis" Date: Wed, 22 Nov 2023 14:00:16 +0100 Subject: [PATCH] Turn on logging on packer --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 8cb948c..2d8cb7d 100644 --- a/build.sh +++ b/build.sh @@ -36,7 +36,8 @@ echo "packer plugins: `/bin/packer plugins installed`" echo "executing /bin/packer init -upgrade ./config.pkr.hcl" /bin/packer init -upgrade ./config.pkr.hcl -echo "executing /bin/packer build ./$PACKER_SCRIPT | tee /usr/local/packer/logs/$UOMI_NAME.log" +export PACKER_LOG=1 +echo "executing /bin/packer build -debug ./$PACKER_SCRIPT | tee /usr/local/packer/logs/$UOMI_NAME.log" /bin/packer build -debug ./$PACKER_SCRIPT | tee /usr/local/packer/logs/$UOMI_NAME.log # Workaround for bad Packer exit code