X-Git-Url: https://code.grnet.gr/git/snf-image/blobdiff_plain/f55d6d0c61da496fd3cf4990c4414624d15bb314..ded30adf655f991d4edbb0ab3d170a8848036c6b:/snf-image-host/create diff --git a/snf-image-host/create b/snf-image-host/create index 00eb811..dad9fd0 100755 --- a/snf-image-host/create +++ b/snf-image-host/create @@ -24,6 +24,13 @@ set -o pipefail ganeti_os_main +if [ "$IMAGE_DEBUG" = "yes" ]; then + PS4='$(date "+%s.%N ($LINENO) + ")' + set -x +elif [ "$IMAGE_DEBUG" != "no" ]; then + echo "Warning: Unsupported IMAGE_DEBUG value: \`$IMAGE_DEBUG'" +fi + # Save stderr to a file stderr=$(mktemp) add_cleanup rm "$stderr"