Skip to content

Commit

Permalink
disable linux-headers install for fips (#207)
Browse files Browse the repository at this point in the history
(cherry picked from commit 26bf2d0)
  • Loading branch information
santhoshdaivajna committed Jun 12, 2024
1 parent 52cb7a9 commit 9c42044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit 9c42044

Please sign in to comment.