From 8c763476300dc38f8c052ab314bcff0d614785d3 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Thu, 25 Jul 2024 12:54:19 -0700 Subject: [PATCH] fix validate Signed-off-by: Nianyu Shen --- Earthfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Earthfile b/Earthfile index 9d65dc2..f011db7 100644 --- a/Earthfile +++ b/Earthfile @@ -387,7 +387,8 @@ build-uki-iso: FROM --platform=linux/${ARCH} $OSBUILDER_IMAGE ENV ISO_NAME=${ISO_NAME} COPY overlay/files-iso/ /overlay/ - COPY --if-exists +validate-user-data/user-data /overlay/config.yaml + # COPY --if-exists +validate-user-data/user-data /overlay/config.yaml + COPY --if-exists user-data /overlay/config.yaml COPY --platform=linux/${ARCH} +stylus-image-pack/stylus-image.tar /overlay/stylus-image.tar COPY --platform=linux/${ARCH} +luet/luet /overlay/luet @@ -457,7 +458,8 @@ build-iso: FROM --platform=linux/${ARCH} $OSBUILDER_IMAGE ENV ISO_NAME=${ISO_NAME} COPY overlay/files-iso/ /overlay/ - COPY --if-exists +validate-user-data/user-data /overlay/files-iso/config.yaml + # COPY --if-exists +validate-user-data/user-data /overlay/files-iso/config.yaml + COPY --if-exists user-data /overlay/files-iso/config.yaml COPY --if-exists content-*/*.zst /overlay/opt/spectrocloud/content/ COPY --if-exists "$EDGE_CUSTOM_CONFIG" /overlay/.edge_custom_config.yaml RUN if [ -n "$(ls /overlay/opt/spectrocloud/content/*.zst 2>/dev/null)" ]; then \