From 2107a3a0712c0b04f9595dc556ace34687525f00 Mon Sep 17 00:00:00 2001 From: ordinarthur <@arthurbarre.js@gmail.com> Date: Mon, 13 Apr 2026 22:10:15 +0200 Subject: [PATCH] fix: load binfmt_misc module in pi-gen container --- tools/pi-gen-tipote/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pi-gen-tipote/Dockerfile b/tools/pi-gen-tipote/Dockerfile index 3100f04..6f1108c 100644 --- a/tools/pi-gen-tipote/Dockerfile +++ b/tools/pi-gen-tipote/Dockerfile @@ -30,4 +30,4 @@ RUN touch /build/pi-gen/stage2/SKIP_IMAGES RUN find /build/pi-gen -name "*.sh" -exec sed -i 's/setarch linux32 //g' {} + 2>/dev/null || true \ && sed -i '/qemu-user-binfmt/d' /build/pi-gen/depends -CMD ["bash", "-c", "cd /build/pi-gen && ./build.sh && mkdir -p /output && cp deploy/*.img.xz /output/ 2>/dev/null || cp deploy/*.img /output/ 2>/dev/null && ls -lh /output/"] +CMD ["bash", "-c", "modprobe binfmt_misc 2>/dev/null || true && mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc 2>/dev/null || true && cd /build/pi-gen && ./build.sh && mkdir -p /output && cp deploy/*.img.xz /output/ 2>/dev/null || cp deploy/*.img /output/ 2>/dev/null && ls -lh /output/"]