From 14dea106eecb3fe8ce9bb0c5ae7679f0952e8510 Mon Sep 17 00:00:00 2001 From: You-Sheng Yang Date: Thu, 21 Mar 2024 11:41:58 +0800 Subject: [PATCH] binfmt: match loong64 arch name to containerd known arches Signed-off-by: You-Sheng Yang --- .github/workflows/ci.yml | 2 +- cmd/binfmt/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47cceb33..890d43b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,7 +114,7 @@ jobs: name: Test mainline if: matrix.target == 'mainline' run: | - docker run --rm --privileged tonistiigi/binfmt:test --uninstall amd64,arm64,arm,ppc64le,s390x,riscv64,loongarch64 + docker run --rm --privileged tonistiigi/binfmt:test --uninstall qemu-* docker run --rm --privileged tonistiigi/binfmt:test --install all docker run --rm arm64v8/alpine uname -a docker run --rm arm32v7/alpine uname -a diff --git a/cmd/binfmt/config.go b/cmd/binfmt/config.go index 6d4920cb..b73626cd 100644 --- a/cmd/binfmt/config.go +++ b/cmd/binfmt/config.go @@ -65,7 +65,7 @@ var configs = map[string]config{ magic: `\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08`, mask: `\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff`, }, - "loongarch64": { + "loong64": { binary: "qemu-loongarch64", magic: `\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01`, mask: `\xff\xff\xff\xff\xff\xff\xff\xfc\x00\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff`,