Skip to content

Commit

Permalink
fix(lsinitrd.sh): add a missing path to image
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kenneth-dsouza authored and johannbg committed Dec 21, 2022
1 parent 9cc7cee commit e877be6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lsinitrd.sh
Expand Up @@ -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 ]] \
Expand Down

0 comments on commit e877be6

Please sign in to comment.