From 0d2ba4766ed258e3295fb2ff450a38954c7af2d6 Mon Sep 17 00:00:00 2001 From: Li Yuxuan Date: Mon, 25 Mar 2019 16:13:49 +0800 Subject: [PATCH] builder: Pass the DEBUG flag when using docker When using docker, pass the `DEBUG` flag to trace the commands as well. Fixes: #261 Signed-off-by: Li Yuxuan --- image-builder/image_builder.sh | 1 + rootfs-builder/rootfs.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/image-builder/image_builder.sh b/image-builder/image_builder.sh index 53a3dd344..1a4d5e688 100755 --- a/image-builder/image_builder.sh +++ b/image-builder/image_builder.sh @@ -117,6 +117,7 @@ if [ -n "${USE_DOCKER}" ] ; then --env IMG_SIZE="${IMG_SIZE}" \ --env AGENT_INIT=${AGENT_INIT} \ --env DAX="${DAX}" \ + --env DEBUG="${DEBUG}" \ -v /dev:/dev \ -v "${script_dir}":"/osbuilder" \ -v "${script_dir}/../scripts":"/scripts" \ diff --git a/rootfs-builder/rootfs.sh b/rootfs-builder/rootfs.sh index a1b10eb61..108cce50c 100755 --- a/rootfs-builder/rootfs.sh +++ b/rootfs-builder/rootfs.sh @@ -346,6 +346,7 @@ if [ -n "${USE_DOCKER}" ] ; then --env OSBUILDER_VERSION="${OSBUILDER_VERSION}" \ --env INSIDE_CONTAINER=1 \ --env SECCOMP="${SECCOMP}" \ + --env DEBUG="${DEBUG}" \ -v "${script_dir}":"/osbuilder" \ -v "${ROOTFS_DIR}":"/rootfs" \ -v "${script_dir}/../scripts":"/scripts" \