Skip to content

Commit

Permalink
updated if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kpiyush17 committed Mar 1, 2024
1 parent 53146b9 commit dc7dca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ base-image:
RUN kernel=$(ls /lib/modules | tail -n1) && \
depmod -a "${kernel}"

IF [ "$FIPS_ENABLED" = "false" ]
RUN ln -s /usr/sbin/grub-editenv /usr/bin/grub2-editenv
END
RUN if [ ! -f /usr/bin/grub2-editenv ]; then \
ln -s /usr/sbin/grub-editenv /usr/bin/grub2-editenv; \
fi

RUN rm -rf /var/cache/* && \
apt clean
Expand Down

0 comments on commit dc7dca2

Please sign in to comment.