From 53146b9e7d3f5ae2a40cd659ad5fd7c4cfb5a619 Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Wed, 28 Feb 2024 17:27:33 +0530 Subject: [PATCH] run soft link to grub2-editenv only on non-fips --- Earthfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index c6075d2c..402cd511 100644 --- a/Earthfile +++ b/Earthfile @@ -300,7 +300,9 @@ base-image: RUN kernel=$(ls /lib/modules | tail -n1) && \ depmod -a "${kernel}" - RUN ln -s /usr/sbin/grub-editenv /usr/bin/grub2-editenv + IF [ "$FIPS_ENABLED" = "false" ] + RUN ln -s /usr/sbin/grub-editenv /usr/bin/grub2-editenv + END RUN rm -rf /var/cache/* && \ apt clean