From 9d7a1c524f5a2b077fd17fef4c341f5168fa8eec Mon Sep 17 00:00:00 2001 From: Kevin Reeuwijk Date: Tue, 4 Jun 2024 15:50:18 +0200 Subject: [PATCH] Handle FIPS use case --- Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index f0d0ef5..cc05f99 100644 --- a/Earthfile +++ b/Earthfile @@ -539,7 +539,7 @@ provider-image: IF [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ] ARG BASE_K8S_VERSION=$K8S_VERSION IF [ "$OS_DISTRIBUTION" = "ubuntu" ] && [ "$ARCH" = "amd64" ] - 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 + RUN kernel=$(ls /lib/modules | tail -n1 | sed -r 's/fips/generic/') && 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" ] ARG K8S_DISTRIBUTION_TAG=$K3S_FLAVOR_TAG