From 26bf2d02be7bb537212c67b4c7916c189272e4f8 Mon Sep 17 00:00:00 2001 From: Santhosh Date: Tue, 4 Jun 2024 23:47:41 +0530 Subject: [PATCH] disable linux-headers install for fips (#207) --- Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index f0d0ef5..7f68f49 100644 --- a/Earthfile +++ b/Earthfile @@ -538,7 +538,7 @@ provider-image: IF [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ] ARG BASE_K8S_VERSION=$K8S_VERSION - IF [ "$OS_DISTRIBUTION" = "ubuntu" ] && [ "$ARCH" = "amd64" ] + IF [ "$OS_DISTRIBUTION" = "ubuntu" ] && [ "$ARCH" = "amd64" ] && [ "$K8S_DISTRIBUTION" = "kubeadm" ] RUN kernel=$(ls /lib/modules | tail -n1) && if ! ls /usr/src | grep linux-headers-$kernel; then apt-get update && apt-get install -y "linux-headers-${kernel}"; fi END ELSE IF [ "$K8S_DISTRIBUTION" = "k3s" ]