[PATCH] ci: Manually configure binfmt_misc

3 views
Skip to first unread message

Jan Kiszka

unread,
Aug 12, 2026, 7:26:38 AMAug 12
to EFI Boot Guard, Hector Cao
From: Jan Kiszka <jan.k...@siemens.com>

For unknown reason, the automatic registration of qemu-user interpreters
no longer works in the github runner images - while does work fine in a
local noble VM. Also switching to qemu-user-binfmt and/or installing
binfmt-support does not change this. Therefore, perform the registration
manually for now.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---

Still open for better proposal or at least better explanations.

.github/workflows/main.yaml | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 4f73b04..397ec44 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -115,6 +115,11 @@ jobs:

- name: Prepare build
run: |
+ for CONF in $(find /usr/lib/binfmt.d -name "qemu-*.conf" 2>/dev/null); do
+ if ! [ -f /proc/sys/fs/binfmt_misc/"$(basename "${CONF%%.conf}")" ]; then
+ sudo sh -c "cat '$CONF' > /proc/sys/fs/binfmt_misc/register"
+ fi
+ done
autoreconf -fi
mkdir -p build

--
2.47.3
Reply all
Reply to author
Forward
0 new messages