From e5627960a54000ee2785958ace9be11c0a813a97 Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Mon, 21 Aug 2023 15:50:17 -0400 Subject: [PATCH] Use DOCKER env var from host machine when running `script/otbr-setup.bash` in QEMU machine --- script/make-raspbian.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/make-raspbian.bash b/script/make-raspbian.bash index 2369d5e..6ebb3c1 100755 --- a/script/make-raspbian.bash +++ b/script/make-raspbian.bash @@ -143,7 +143,7 @@ main() sudo tar xzf "$STAGE_DIR"/repo.tar.gz --absolute-names --strip-components 1 -C "$QEMU_ROOT"/home/pi/repo # Run OTBR install - sudo chroot "$QEMU_ROOT" /bin/bash /home/pi/repo/script/otbr-setup.bash "${REFERENCE_RELEASE_TYPE?}" "$IN_CHINA" "${REFERENCE_PLATFORM?}" "${OPENTHREAD_COMMIT_HASH}" "${OT_BR_POSIX_COMMIT_HASH}" "${OTBR_RCP_BUS}" "${OTBR_RADIO_URL}" + sudo chroot "$QEMU_ROOT" /bin/bash -c "DOCKER=${DOCKER-0}; /home/pi/repo/script/otbr-setup.bash ${REFERENCE_RELEASE_TYPE?} $IN_CHINA ${REFERENCE_PLATFORM?} ${OPENTHREAD_COMMIT_HASH} ${OT_BR_POSIX_COMMIT_HASH} ${OTBR_RCP_BUS} ${OTBR_RADIO_URL}" sudo chroot "$QEMU_ROOT" /bin/bash /home/pi/repo/script/otbr-cleanup.bash echo "enable_uart=1" | sudo tee -a "$QEMU_ROOT"/boot/config.txt echo "dtoverlay=disable-bt" | sudo tee -a "$QEMU_ROOT"/boot/config.txt