Add loongarch64 support to binfmt_misc

Signed-off-by: yzewei <yangzewei@loongson.cn>
This commit is contained in:
yzewei 2024-01-06 15:53:25 +08:00
parent 59245e88e8
commit 27c08f25ad
4 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@ onboot:
- name: sysfs - name: sysfs
image: linuxkit/sysfs:5fd982d39ff7bec8e480c67a110acb2d3794c291 image: linuxkit/sysfs:5fd982d39ff7bec8e480c67a110acb2d3794c291
- name: binfmt - name: binfmt
image: linuxkit/binfmt:af88a591f9cc896a52ce596b9cf7ca26a061ef97 image: linuxkit/binfmt:8960cf2852ef5dccd8cb0746d8ba48ce4fe4651d
# Format and mount the disk image in /var/lib/docker # Format and mount the disk image in /var/lib/docker
- name: format - name: format
image: linuxkit/format:5161fe240e5824da04d51bcf5e00afcb0c18dc25 image: linuxkit/format:5161fe240e5824da04d51bcf5e00afcb0c18dc25

View File

@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y qemu-user-static && \
mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le && \ mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le && \
mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x && \ mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x && \
mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 && \ mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 && \
mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 && \
rm /usr/bin/qemu-*-static rm /usr/bin/qemu-*-static
FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror

View File

@ -7,3 +7,4 @@
:qemu-ppc64le:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15\x00:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\x00:/usr/bin/qemu-ppc64le:CF :qemu-ppc64le:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15\x00:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\x00:/usr/bin/qemu-ppc64le:CF
:qemu-s390x:M:0:\x7f\x45\x4c\x46\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-s390x:CF :qemu-s390x:M:0:\x7f\x45\x4c\x46\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-s390x:CF
:qemu-riscv64:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64:CF :qemu-riscv64:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64:CF
:qemu-loongarch64:M:0:\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01:\xff\xff\xff\xff\xff\xff\xff\xfc\x00\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-loongarch64:CF

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:2aabf16bc8a1b94e015ee53fa2e7a77ab1883a80 - linuxkit/runc:2aabf16bc8a1b94e015ee53fa2e7a77ab1883a80
onboot: onboot:
- name: binfmt - name: binfmt
image: linuxkit/binfmt:af88a591f9cc896a52ce596b9cf7ca26a061ef97 image: linuxkit/binfmt:8960cf2852ef5dccd8cb0746d8ba48ce4fe4651d
- name: test - name: test
image: alpine:3.13 image: alpine:3.13
binds: binds: