387eb4a377
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/os-prober#2e94fd7ad1e4447a86142639b48e4d5334664d1a
14 lines
841 B
Diff
14 lines
841 B
Diff
Index: os-prober/linux-boot-probes/mounted/common/90fallback
|
|
===================================================================
|
|
--- os-prober.orig/linux-boot-probes/mounted/common/90fallback
|
|
+++ os-prober/linux-boot-probes/mounted/common/90fallback
|
|
@@ -33,7 +33,7 @@ for kernpat in /vmlinuz /vmlinux /boot/v
|
|
# Dracut initramfses are named differently again.
|
|
initrdname3=$(echo "$kernfile" | sed "s/vmlinu[zx]/initramfs\*/" | sed 's/$/.img/')
|
|
# And Gentoo's also
|
|
- initrdname4=$(echo "$kernfile" | sed "s/kernel/initramfs\*/")
|
|
+ initrdname4=$(echo "$kernfile" | sed "s/kernel\|vmlinu[zx]/initramfs\*/")
|
|
foundinitrd=0
|
|
for initrd in $(eval ls "$initrdname" "$initrdname1" "$initrdname2" "$initrdname3" "$initrdname4" 2>/dev/null); do
|
|
if [ "$initrd" != "$kernfile" ] && [ -f "$initrd" ] && [ ! -L "$initrd" ]; then
|