Skip to content

Commit

Permalink
run soft link to grub2-editenv only if file does not exists (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpiyush17 authored Mar 1, 2024
1 parent 589cff2 commit e799e09
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
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 e799e09

Please sign in to comment.