pass target arch to final image builder as TARGETARCH; use TARGETARCH when generating raw and iso, fallback to build arch; use updated images that read TARGETARCH; ensure grub has EFI for all archs

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2023-10-05 10:15:16 +03:00
parent 6c3f3e8eb1
commit 7ab99eac1f
17 changed files with 166 additions and 104 deletions

View File

@@ -1,4 +1,4 @@
FROM linuxkit/grub:4de02c056b3295f510b7fb4f9b5a2785f854ac23 AS grub
FROM linuxkit/grub:292deb743d85eb79cbd5b163841db8ccd2500677 AS grub
FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/

View File

@@ -3,7 +3,7 @@
set -e
# get the GRUB2 boot file name
ARCH=`uname -m`
ARCH=${TARGETARCH:-`uname -m`}
case $ARCH in
x86_64)
BOOTFILE=BOOTX64.EFI