From f2f96d45804abc0144319b97ceff767b9732debc Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 9 Aug 2024 14:33:21 -0700 Subject: [PATCH] use fips ubuntu systemd image Signed-off-by: Nianyu Shen --- Earthfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Earthfile b/Earthfile index 3d902c0..beba595 100644 --- a/Earthfile +++ b/Earthfile @@ -950,7 +950,11 @@ iso-efi-size-check: SAVE ARTIFACT efi-size-check.iso AS LOCAL ./build/ ubuntu-systemd: - FROM $SPECTRO_PUB_REPO/ubuntu-systemd:22.04 + IF [ "$FIPS_ENABLED" = "true" ] + ARG SYSTEMD_IMAGE=$SPECTRO_PUB_REPO/third-party/ubuntu-systemd-fips:20.04 + ELSE + ARG SYSTEMD_IMAGE=$SPECTRO_PUB_REPO/third-party/ubuntu-systemd:22.04 + END OS_RELEASE: COMMAND @@ -970,7 +974,6 @@ OS_RELEASE: # RUN sed -i -n '/KAIROS_/!p' /etc/os-release RUN envsubst >>/etc/os-release