]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(lsinitrd.sh): add a missing path to image
authorKenneth D'souza <kennethdsouza94@gmail.com>
Tue, 13 Dec 2022 15:26:33 +0000 (20:56 +0530)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 21 Dec 2022 16:53:20 +0000 (16:53 +0000)
The initramfs file for Fedora/RedHat CoreOS can be found under
`/lib/modules/${KERNEL_VERSION}/initramfs.img', add this path
to image search logic.

Signed-off-by: Kenneth D'souza <kennethdsouza94@gmail.com>
lsinitrd.sh

index 99fd13f50595a8051aafec1f1d195666592ab7a4..eaadc7623fefb2428e1f200b4305a025bea4130b 100755 (executable)
@@ -131,6 +131,8 @@ else
         image="/boot/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
     elif [[ -f /lib/modules/${KERNEL_VERSION}/initrd ]]; then
         image="/lib/modules/${KERNEL_VERSION}/initrd"
+    elif [[ -f /lib/modules/${KERNEL_VERSION}/initramfs.img ]]; then
+        image="/lib/modules/${KERNEL_VERSION}/initramfs.img"
     elif [[ -f /boot/initramfs-${KERNEL_VERSION}.img ]]; then
         image="/boot/initramfs-${KERNEL_VERSION}.img"
     elif [[ $MACHINE_ID ]] \