From: Kenneth D'souza Date: Tue, 13 Dec 2022 15:26:33 +0000 (+0530) Subject: fix(lsinitrd.sh): add a missing path to image X-Git-Tag: 058~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e877be69b41199ee4384ccb6352754bb9edfbba4;p=thirdparty%2Fdracut.git fix(lsinitrd.sh): add a missing path to image 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 --- diff --git a/lsinitrd.sh b/lsinitrd.sh index 99fd13f50..eaadc7623 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -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 ]] \