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 <liyuxuan04@baidu.com>
This commit is contained in:
Li Yuxuan 2019-03-25 16:13:49 +08:00
parent a06c82a120
commit 0d2ba4766e
2 changed files with 2 additions and 0 deletions

View File

@ -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" \

View File

@ -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" \