Skip to content

Commit e877be6

Browse files
kenneth-dsouzajohannbg
authored andcommitted
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 <[email protected]>
1 parent 9cc7cee commit e877be6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lsinitrd.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ else
131131
image="/boot/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
132132
elif [[ -f /lib/modules/${KERNEL_VERSION}/initrd ]]; then
133133
image="/lib/modules/${KERNEL_VERSION}/initrd"
134+
elif [[ -f /lib/modules/${KERNEL_VERSION}/initramfs.img ]]; then
135+
image="/lib/modules/${KERNEL_VERSION}/initramfs.img"
134136
elif [[ -f /boot/initramfs-${KERNEL_VERSION}.img ]]; then
135137
image="/boot/initramfs-${KERNEL_VERSION}.img"
136138
elif [[ $MACHINE_ID ]] \

0 commit comments

Comments
 (0)