From e63b3c81de202391e8eb4ec31c5e57d1c63e551f Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Thu, 27 Jul 2023 18:28:25 +0200 Subject: [PATCH] :bug: Set iso name for netboot (#468) Fixes the current issue on main Signed-off-by: Mauro Morales --- Earthfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 2cb00cff..0d55a101 100644 --- a/Earthfile +++ b/Earthfile @@ -226,7 +226,12 @@ iso: netboot: FROM opensuse/leap ARG VERSION - ARG ISO_NAME + IF [ "$TARGETARCH" = "arm64" ] + ARG DISTRO=$(echo $FLAVOR | sed 's/-arm-.*//') + ARG ISO_NAME=${OS_ID}-${VARIANT}-${DISTRO}-${TARGETARCH}-${MODEL}-${VERSION} + ELSE + ARG ISO_NAME=${OS_ID}-${VARIANT}-${FLAVOR}-${TARGETARCH}-${MODEL}-${VERSION} + END WORKDIR /build COPY +iso/kairos.iso kairos.iso COPY . .