Skip to content

Commit

Permalink
actions: register qemu with capability binfmt flag
Browse files Browse the repository at this point in the history
problem: Arm64 container build still running into issues even avoiding
sudo in the docker container, it's hiding in check run, Debian-based
distributions by default register binfmt_misc loaders without support
for setuid propagating into the container

solution: This adds the `--credential` argument to the script in the
container, and strips out the github actions indirection so we can
maintain it.  This should change the flags from F to OC or OCF, either
should allow the setuid of the sudo binary to be preserved
  • Loading branch information
trws committed Sep 18, 2023
1 parent f1e77a5 commit f9c4c5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ jobs:
uses: docker/setup-buildx-action@v2
if: matrix.needs_buildx

- uses: dbhi/qus/action@main
with:
targets: aarch64
- name: setup qemu-user-static
run: |
docker run --rm --privileged aptman/qus -s -- -p --credential aarch64
- name: docker-run-checks
env: ${{matrix.env}}
Expand Down

0 comments on commit f9c4c5e

Please sign in to comment.