diff --git a/Dockerfile b/Dockerfile index 0178d5b32..11c992cdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -499,6 +499,7 @@ RUN apk add --no-cache --update \ xorriso \ xz ARG TARGETARCH +ENV TARGETARCH ${TARGETARCH} COPY --from=install-artifacts / / COPY --from=installer-build /installer /bin/installer RUN ln -s /bin/installer /bin/talosctl @@ -514,10 +515,10 @@ ONBUILD RUN apk add --no-cache --update \ ONBUILD WORKDIR /initramfs ONBUILD ARG RM ONBUILD RUN xz -d /usr/install/${TARGETARCH}/initramfs.xz \ - && cpio -idvm < /usr/install/initramfs \ + && cpio -idvm < /usr/install/${TARGETARCH}/initramfs \ && unsquashfs -f -d /rootfs rootfs.sqsh \ && for f in ${RM}; do rm -rfv /rootfs$f; done \ - && rm /usr/install/initramfs \ + && rm /usr/install/${TARGETARCH}/initramfs \ && rm rootfs.sqsh ONBUILD COPY --from=customization / /rootfs ONBUILD RUN find /rootfs \ diff --git a/website/content/docs/v0.11/Guides/customizing-the-kernel.md b/website/content/docs/v0.11/Guides/customizing-the-kernel.md index bc799ab94..553e281d1 100644 --- a/website/content/docs/v0.11/Guides/customizing-the-kernel.md +++ b/website/content/docs/v0.11/Guides/customizing-the-kernel.md @@ -31,7 +31,7 @@ FROM scratch AS customization COPY --from= /lib/modules /lib/modules FROM ghcr.io/talos-systems/installer:latest -COPY --from= /boot/vmlinuz /usr/install/vmlinuz +COPY --from= /boot/vmlinuz /usr/install/${TARGETARCH}/vmlinuz ``` When building the image, the `customization` stage will automatically be copied into the rootfs.