diff options
author | Gwenael Lambrouin <gwenael.lambrouin@orange.com> | 2021-12-13 14:33:07 +0100 |
---|---|---|
committer | Gwenael Lambrouin <gwenael.lambrouin@orange.com> | 2022-03-01 11:29:36 +0100 |
commit | ebf68732e277ab06175df8a0fcde46dc7a730321 (patch) | |
tree | 389488ec55040d3fbd1ca1d65f110370aee7017f /nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution | |
parent | ce062d315394b813ce79849c6595d198351c2cec (diff) |
nfvbenchvm: add 2 debug features to build-image.sh
- The new option -t (enable debug traces) allows to show in the build
log the commands run in the shell scripts, including the commands
defined in the disk image builder elements.
- The new option -d (debug) instructs disk-image-create to drop the
developer in a shell inside the chroot in case an error occurs. This
makes troubleshooting of the image possible (inspect files, run
commands, ...)
Change-Id: I5f76e7dec64fc4c86b1515f6b81a16e11e03eadf
Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
Diffstat (limited to 'nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution')
-rwxr-xr-x | nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution b/nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution index cc9f136..d01b907 100755 --- a/nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution +++ b/nfvbenchvm/dib/elements/nfvbenchvm/finalise.d/52-change-resolution @@ -1,5 +1,9 @@ #!/bin/bash +if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then + set -x +fi + # Stop on error set -euo pipefail |