diff --git a/5.0/Dockerfile b/5.0/Dockerfile index b138bfe..858c6db 100644 --- a/5.0/Dockerfile +++ b/5.0/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,17 +12,18 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ apt-get update; \ apt-get install -y --no-install-recommends \ ovmf \ + ovmf-ia32 \ qemu-efi-aarch64 \ qemu-efi-arm \ ; \ diff --git a/5.0/Dockerfile.native b/5.0/Dockerfile.native index 3b3cd11..402acbf 100644 --- a/5.0/Dockerfile.native +++ b/5.0/Dockerfile.native @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,11 +12,11 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ @@ -26,6 +26,7 @@ RUN set -eux; \ amd64) apt-get install -y --no-install-recommends ovmf ;; \ arm64) apt-get install -y --no-install-recommends qemu-efi-aarch64 ;; \ armel | armhf) apt-get install -y --no-install-recommends qemu-efi-arm ;; \ + i386) apt-get install -y --no-install-recommends ovmf-ia32 ;; \ *) echo >&2 "warning: architecture '$arch' unknown 😅 (is there a 'QEMU firmware' package that should be installed here? likely candidates: https://packages.debian.org/source/$suite/edk2)" ;; \ esac; \ rm -rf /var/lib/apt/lists/* diff --git a/5.1/Dockerfile b/5.1/Dockerfile index 9d93c33..c346587 100644 --- a/5.1/Dockerfile +++ b/5.1/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,17 +12,18 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ apt-get update; \ apt-get install -y --no-install-recommends \ ovmf \ + ovmf-ia32 \ qemu-efi-aarch64 \ qemu-efi-arm \ ; \ diff --git a/5.1/Dockerfile.native b/5.1/Dockerfile.native index 8f3900c..a22c2bb 100644 --- a/5.1/Dockerfile.native +++ b/5.1/Dockerfile.native @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,11 +12,11 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ @@ -26,6 +26,7 @@ RUN set -eux; \ amd64) apt-get install -y --no-install-recommends ovmf ;; \ arm64) apt-get install -y --no-install-recommends qemu-efi-aarch64 ;; \ armel | armhf) apt-get install -y --no-install-recommends qemu-efi-arm ;; \ + i386) apt-get install -y --no-install-recommends ovmf-ia32 ;; \ *) echo >&2 "warning: architecture '$arch' unknown 😅 (is there a 'QEMU firmware' package that should be installed here? likely candidates: https://packages.debian.org/source/$suite/edk2)" ;; \ esac; \ rm -rf /var/lib/apt/lists/* diff --git a/5.2/Dockerfile b/5.2/Dockerfile index 8e6c479..d18dbcb 100644 --- a/5.2/Dockerfile +++ b/5.2/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,17 +12,18 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ apt-get update; \ apt-get install -y --no-install-recommends \ ovmf \ + ovmf-ia32 \ qemu-efi-aarch64 \ qemu-efi-arm \ ; \ diff --git a/5.2/Dockerfile.native b/5.2/Dockerfile.native index b6f2825..4278e34 100644 --- a/5.2/Dockerfile.native +++ b/5.2/Dockerfile.native @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,11 +12,11 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ @@ -26,6 +26,7 @@ RUN set -eux; \ amd64) apt-get install -y --no-install-recommends ovmf ;; \ arm64) apt-get install -y --no-install-recommends qemu-efi-aarch64 ;; \ armel | armhf) apt-get install -y --no-install-recommends qemu-efi-arm ;; \ + i386) apt-get install -y --no-install-recommends ovmf-ia32 ;; \ *) echo >&2 "warning: architecture '$arch' unknown 😅 (is there a 'QEMU firmware' package that should be installed here? likely candidates: https://packages.debian.org/source/$suite/edk2)" ;; \ esac; \ rm -rf /var/lib/apt/lists/* diff --git a/6.0/Dockerfile b/6.0/Dockerfile index ef92abe..d0c0521 100644 --- a/6.0/Dockerfile +++ b/6.0/Dockerfile @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,17 +12,18 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ apt-get update; \ apt-get install -y --no-install-recommends \ ovmf \ + ovmf-ia32 \ qemu-efi-aarch64 \ qemu-efi-arm \ ; \ diff --git a/6.0/Dockerfile.native b/6.0/Dockerfile.native index 06086dc..3057f20 100644 --- a/6.0/Dockerfile.native +++ b/6.0/Dockerfile.native @@ -4,7 +4,7 @@ # PLEASE DO NOT EDIT IT DIRECTLY. # -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -12,11 +12,11 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ @@ -26,6 +26,7 @@ RUN set -eux; \ amd64) apt-get install -y --no-install-recommends ovmf ;; \ arm64) apt-get install -y --no-install-recommends qemu-efi-aarch64 ;; \ armel | armhf) apt-get install -y --no-install-recommends qemu-efi-arm ;; \ + i386) apt-get install -y --no-install-recommends ovmf-ia32 ;; \ *) echo >&2 "warning: architecture '$arch' unknown 😅 (is there a 'QEMU firmware' package that should be installed here? likely candidates: https://packages.debian.org/source/$suite/edk2)" ;; \ esac; \ rm -rf /var/lib/apt/lists/* diff --git a/Dockerfile.template b/Dockerfile.template index d18570a..8c9e9c9 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,4 +1,4 @@ -FROM debian:buster-slim +FROM debian:bullseye-slim RUN set -eux; \ # add backports for (potentially) newer QEMU firmware packages @@ -6,11 +6,11 @@ RUN set -eux; \ echo "deb http://deb.debian.org/debian $suite-backports main" > /etc/apt/sources.list.d/backports.list; \ # and add APT pinning to ensure we don't accidentally get QEMU from Debian { \ - echo 'Package: qemu-efi-* ovmf'; \ + echo 'Package: src:edk2'; \ echo 'Pin: release a=*-backports'; \ echo 'Pin-Priority: 600'; \ echo; \ - echo 'Package: qemu*'; \ + echo 'Package: src:qemu'; \ echo 'Pin: version *'; \ echo 'Pin-Priority: -10'; \ } > /etc/apt/preferences.d/qemu.pref; \ @@ -19,8 +19,8 @@ RUN set -eux; \ amd64: "ovmf", arm64: "qemu-efi-aarch64", "armel | armhf": "qemu-efi-arm", -# TODO add "i386": "ovmf-ia32" in bullseye+ -# TODO in bullseye+, add u-boot-qemu ? https://packages.debian.org/bullseye/u-boot-qemu (not sure which arches to add this to since it contains all of them... maybe every relevant one?) + i386: "ovmf-ia32", +# TODO add u-boot-qemu ? https://packages.debian.org/bullseye/u-boot-qemu (not sure which arches to add this to since it contains all of them... maybe every relevant one?) } -}} {{ if env.variant == "native" then ( -}} arch="$(dpkg --print-architecture)"; \