summaryrefslogtreecommitdiff
path: root/build-docker.sh
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-02-02 14:26:31 +0000
committerSerge Schneider <serge@raspberrypi.com>2022-02-02 14:26:31 +0000
commit2b3ba5b2a64c4bf059e2281f953cfd6f18fbaf1c (patch)
tree132dba088f3613e05d9589502962e1a82a01cd3b /build-docker.sh
parentfbe448ccdc995d295d24c7596e5f0ef62cc2488f (diff)
parent724820051c400f9554d7fa311e7fc378bf598282 (diff)
Merge branch 'master' into arm64
Diffstat (limited to 'build-docker.sh')
-rwxr-xr-xbuild-docker.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-docker.sh b/build-docker.sh
index 85200e4..a7f18f1 100755
--- a/build-docker.sh
+++ b/build-docker.sh
@@ -48,7 +48,7 @@ fi
CONTAINER_NAME=${CONTAINER_NAME:-pigen_work}
CONTINUE=${CONTINUE:-0}
PRESERVE_CONTAINER=${PRESERVE_CONTAINER:-0}
-PIGEN_DOCKER_OPTS=${PIGEN_DOCKER_OPTS:-""}
+PIGEN_DOCKER_OPTS=${PIGEN_DOCKER_OPTS:-""}
if [ -z "${IMG_NAME}" ]; then
echo "IMG_NAME not set in 'config'" 1>&2
@@ -98,6 +98,8 @@ if [ "${CONTAINER_EXISTS}" != "" ]; then
--volumes-from="${CONTAINER_NAME}" --name "${CONTAINER_NAME}_cont" \
pi-gen \
bash -e -o pipefail -c "dpkg-reconfigure qemu-user-static &&
+ # binfmt_misc is sometimes not mounted with debian bullseye image
+ (mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true) &&
cd /pi-gen; ./build.sh ${BUILD_OPTS} &&
rsync -av work/*/build.log deploy/" &
wait "$!"
@@ -112,6 +114,8 @@ else
-e "GIT_HASH=${GIT_HASH}" \
pi-gen \
bash -e -o pipefail -c "dpkg-reconfigure qemu-user-static &&
+ # binfmt_misc is sometimes not mounted with debian bullseye image
+ (mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true) &&
cd /pi-gen; ./build.sh ${BUILD_OPTS} &&
rsync -av work/*/build.log deploy/" &
wait "$!"