From 093bc9b5cfc071409a20351a669c594c748eb647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3hann=20B=2E=20Gu=C3=B0mundsson?= Date: Sat, 16 Jan 2021 17:44:00 +0000 Subject: [PATCH] fix: add a missing efi support --- lsinitrd.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lsinitrd.sh b/lsinitrd.sh index ea0c7f62..ffdb4a4f 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -97,7 +97,11 @@ if [[ $1 ]]; then else [[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id - if [[ -d /boot/loader/entries || -L /boot/loader/entries ]] \ + if [[ -d /efi/loader/entries || -L /efi/loader/entries ]] \ + && [[ $MACHINE_ID ]] \ + && [[ -d /efi/${MACHINE_ID} || -L /efi/${MACHINE_ID} ]] ; then + image="/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd" + elif [[ -d /boot/loader/entries || -L /boot/loader/entries ]] \ && [[ $MACHINE_ID ]] \ && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then image="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd"