ci(pi-gen): extra-host-dependencies installs qemu inside pi-gen container

Host-side tonistiigi/binfmt registration doesn't propagate into the
pi-gen-action's nested Docker container's view of /proc/sys/fs/binfmt_misc.
usimd/pi-gen-action's extra-host-dependencies input runs apt-get inside
the pi-gen container before pi-gen launches — install qemu-user-static
+ binfmt-support there so the chroot's arm64 binaries can execute.
This commit is contained in:
Mitchell R 2026-05-20 00:39:51 +02:00
parent 69e4bcb14a
commit c60f2a8b9e
No known key found for this signature in database

View file

@ -187,8 +187,7 @@ jobs:
with: with:
image-name: betterframe-client-${{ inputs.version }} image-name: betterframe-client-${{ inputs.version }}
stage-list: stage0 stage1 stage2 ./deploy/pi-gen/stage-betterframe-client stage-list: stage0 stage1 stage2 ./deploy/pi-gen/stage-betterframe-client
# pi-gen default release is trixie (Debian 13). Leave unset so we # pi-gen default release is trixie (Debian 13).
# always track upstream pi-gen's current target.
enable-ssh: 1 enable-ssh: 1
username: bfadmin username: bfadmin
password: betterframe password: betterframe
@ -196,8 +195,12 @@ jobs:
timezone: Etc/UTC timezone: Etc/UTC
hostname: betterframe-kiosk hostname: betterframe-kiosk
compression: xz compression: xz
# Surface pi-gen's stdout/stderr so failures show their real cause.
verbose-output: true verbose-output: true
# Inject qemu-user-static + binfmt-support INTO the pi-gen build
# container so its binfmt_misc check finds qemu-aarch64. The host
# tonistiigi/binfmt registration alone doesn't propagate into
# pi-gen's nested mount namespace.
extra-host-dependencies: qemu-user-static binfmt-support
- name: List pi-gen output - name: List pi-gen output
run: ls -la deploy/ || true run: ls -la deploy/ || true