From 3a34887f197eb554922ff823a4982eea8388054b Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Mon, 7 Aug 2023 15:58:07 +0200 Subject: [PATCH] Pass targetarch instead of buildarch for copying luet config Signed-off-by: Mauro Morales --- tools-image/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools-image/Dockerfile b/tools-image/Dockerfile index 9d82a0c..feb5b0e 100644 --- a/tools-image/Dockerfile +++ b/tools-image/Dockerfile @@ -26,13 +26,13 @@ RUN zypper ref && zypper in -y bc qemu-tools jq cdrtools docker git curl gptfdis COPY --from=luet /usr/bin/luet /usr/bin/luet ENV LUET_NOLOCK=true ENV TMPDIR=/tmp -ARG BUILDARCH +ARG TARGETARCH # copy both arches COPY luet-arm64.yaml /tmp/luet-arm64.yaml COPY luet-amd64.yaml /tmp/luet-amd64.yaml # Set the default luet config to the current build arch RUN mkdir -p /etc/luet/ -RUN cp /tmp/luet-${BUILDARCH}.yaml /etc/luet/luet.yaml +RUN cp /tmp/luet-${TARGETARCH}.yaml /etc/luet/luet.yaml ## Live CD artifacts RUN luet install -y livecd/grub2 --system-target /grub2