From 8d38f72018005572ebfde611741997eb42a62cdc Mon Sep 17 00:00:00 2001 From: Hangfan Li Date: Mon, 30 Dec 2024 17:01:43 +0800 Subject: [PATCH] debian now ships qemu-xxx-static as a symbolink --- .github/workflows/actions.yml | 4 +++- run.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 8895e10..40c06dd 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -29,7 +29,9 @@ jobs: - name: Build run: | wget --content-disposition http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu-user-static_${{ env.ORIGIN_VERSION }}_amd64.deb - dpkg-deb -R qemu-user-static_*.deb releases + wget --content-disposition http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu-user_${{ env.ORIGIN_VERSION }}_amd64.deb + dpkg-deb -x qemu-user-static_*.deb releases + dpkg-deb -x qemu-user_*.deb releases ./run.sh -t "${{ env.VERSION }}" -r "${{ env.GITHUB_REPOSITORY }}" -d "${{ env.DOCKER_REPO }}" - name: Test run: ./test.sh -d "${{ env.DOCKER_REPO }}" diff --git a/run.sh b/run.sh index fa0e6c4..e86b568 100755 --- a/run.sh +++ b/run.sh @@ -52,6 +52,8 @@ do mkdir -p "${work_dir}" cp -p "${releases_dir}qemu-${to_arch}-static" ${work_dir} cp -p "${work_dir}/qemu-${to_arch}-static" "${out_dir}/latest/" + cp -p "${releases_dir}qemu-${to_arch}" ${work_dir} + cp -p "${work_dir}/qemu-${to_arch}" "${out_dir}/latest/" cat > ${work_dir}/Dockerfile -<