mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 21:26:33 +00:00
ci(pi-gen): bring back extra-host-dependencies + binfmt diagnostic
This commit is contained in:
parent
73a01a3d50
commit
d342a3779f
1 changed files with 9 additions and 1 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
|
@ -175,11 +175,16 @@ jobs:
|
||||||
# docker/setup-qemu-action wraps, called directly here so we control
|
# docker/setup-qemu-action wraps, called directly here so we control
|
||||||
# the flags + can sanity-check after.
|
# the flags + can sanity-check after.
|
||||||
- name: Register QEMU binfmt for arm64
|
- name: Register QEMU binfmt for arm64
|
||||||
|
# tonistiigi/binfmt --install arm64 sets the F (fix-binary) flag,
|
||||||
|
# so the kernel preloads qemu-aarch64-static into kernel memory at
|
||||||
|
# registration time. The qemu emulation then works inside pi-gen's
|
||||||
|
# nested container without needing /usr/bin/qemu-aarch64-static to
|
||||||
|
# be present in the chroot.
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --privileged tonistiigi/binfmt --install arm64
|
docker run --rm --privileged tonistiigi/binfmt --install arm64
|
||||||
echo "--- binfmt_misc registrations ---"
|
echo "--- binfmt_misc registrations ---"
|
||||||
ls -la /proc/sys/fs/binfmt_misc/ || true
|
ls -la /proc/sys/fs/binfmt_misc/ || true
|
||||||
echo "--- qemu-aarch64 details ---"
|
echo "--- qemu-aarch64 detail (look for 'flags: F') ---"
|
||||||
cat /proc/sys/fs/binfmt_misc/qemu-aarch64 || true
|
cat /proc/sys/fs/binfmt_misc/qemu-aarch64 || true
|
||||||
|
|
||||||
- name: Build Pi image (pi-gen)
|
- name: Build Pi image (pi-gen)
|
||||||
|
|
@ -195,6 +200,9 @@ jobs:
|
||||||
timezone: Etc/UTC
|
timezone: Etc/UTC
|
||||||
hostname: betterframe-kiosk
|
hostname: betterframe-kiosk
|
||||||
compression: xz
|
compression: xz
|
||||||
|
# Install qemu inside the pi-gen container so its chroot's arm64
|
||||||
|
# binaries can exec. Documented input in v1.11.
|
||||||
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue