From e799e09b4d0392d8ab5a6248b0341acf486aa4cc Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Fri, 1 Mar 2024 10:43:50 +0530 Subject: [PATCH] run soft link to grub2-editenv only if file does not exists (#140) --- Earthfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index c6075d2..6461caa 100644 --- a/Earthfile +++ b/Earthfile @@ -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