Blame SOURCES/os-prober-gentoo-fix.patch

03b69a
Index: os-prober/linux-boot-probes/mounted/common/90fallback
03b69a
===================================================================
03b69a
--- os-prober.orig/linux-boot-probes/mounted/common/90fallback
03b69a
+++ os-prober/linux-boot-probes/mounted/common/90fallback
03b69a
@@ -33,7 +33,7 @@ for kernpat in /vmlinuz /vmlinux /boot/v
03b69a
 			# Dracut initramfses are named differently again.
03b69a
 			initrdname3=$(echo "$kernfile" | sed "s/vmlinu[zx]/initramfs\*/" | sed 's/$/.img/')
03b69a
 			# And Gentoo's also
03b69a
-			initrdname4=$(echo "$kernfile" | sed "s/kernel/initramfs\*/")
03b69a
+			initrdname4=$(echo "$kernfile" | sed "s/kernel\|vmlinu[zx]/initramfs\*/")
03b69a
 			foundinitrd=0
03b69a
 			for initrd in $(eval ls "$initrdname" "$initrdname1" "$initrdname2" "$initrdname3" "$initrdname4" 2>/dev/null); do
03b69a
 				if [ "$initrd" != "$kernfile" ] && [ -f "$initrd" ] && [ ! -L "$initrd" ]; then