Skip to content

Commit

Permalink
Install binfmt-support if update-binfmts is not available
Browse files Browse the repository at this point in the history
ubuntu-24.04 on GitHub-hosted runners don't have `update-binfmts`
installed.

Resolves #15
  • Loading branch information
jirutka committed Dec 26, 2024
1 parent 2778515 commit 35b2ea9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ if needs_emulator "$INPUT_ARCH"; then

group "Install $qemu_cmd emulator"

# TODO: Consider replacing it with a simple shell script to speed-up
# the installation.
if ! command -V update-binfmts >/dev/null; then
info 'Installing binfmt-support from Ubuntu repository'
apt-get install --no-install-recommends -y binfmt-support
fi

if update-binfmts --display $qemu_cmd >/dev/null 2>&1; then
info "$qemu_cmd is already installed on the host system"

Expand Down

0 comments on commit 35b2ea9

Please sign in to comment.