From: Jóhann B. Guðmundsson Date: Sat, 16 Jan 2021 17:44:00 +0000 (+0000) Subject: fix: add a missing efi support X-Git-Tag: 052~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093bc9b5cfc071409a20351a669c594c748eb647;p=thirdparty%2Fdracut.git fix: add a missing efi support --- diff --git a/lsinitrd.sh b/lsinitrd.sh index ea0c7f62a..ffdb4a4fb 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"