]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: add a missing efi support
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Sat, 16 Jan 2021 17:44:00 +0000 (17:44 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 19 Jan 2021 00:44:17 +0000 (00:44 +0000)
lsinitrd.sh

index ea0c7f62a6d6c31d702617a677c20ec838224e17..ffdb4a4fb621ba42fed14d324bd973e705ba8d69 100755 (executable)
@@ -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"