Skip to content

Commit a549b5e

Browse files
authored
Merge pull request #84 from kairos-io/pass-targetarch-instead-of-buildarch
Pass targetarch instead of buildarch for copying luet config
2 parents 518e8f2 + 3a34887 commit a549b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools-image/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ RUN zypper ref && zypper in -y bc qemu-tools jq cdrtools docker git curl gptfdis
2626
COPY --from=luet /usr/bin/luet /usr/bin/luet
2727
ENV LUET_NOLOCK=true
2828
ENV TMPDIR=/tmp
29-
ARG BUILDARCH
29+
ARG TARGETARCH
3030
# copy both arches
3131
COPY luet-arm64.yaml /tmp/luet-arm64.yaml
3232
COPY luet-amd64.yaml /tmp/luet-amd64.yaml
3333
# Set the default luet config to the current build arch
3434
RUN mkdir -p /etc/luet/
35-
RUN cp /tmp/luet-${BUILDARCH}.yaml /etc/luet/luet.yaml
35+
RUN cp /tmp/luet-${TARGETARCH}.yaml /etc/luet/luet.yaml
3636

3737
## Live CD artifacts
3838
RUN luet install -y livecd/grub2 --system-target /grub2

0 commit comments

Comments
 (0)