Skip to content

Commit

Permalink
run soft link to grub2-editenv only on non-fips
Browse files Browse the repository at this point in the history
  • Loading branch information
kpiyush17 committed Feb 28, 2024
1 parent 589cff2 commit 53146b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53146b9

Please sign in to comment.