recipes: tools/ntfs-3g: Added version 2021.8.22
[dragora.git] / patches / os-prober / os-prober-gentoo-fix.patch
blob8545db25de8c099d495e95058a953aa5b0a1e787
1 Index: os-prober/linux-boot-probes/mounted/common/90fallback
2 ===================================================================
3 --- os-prober.orig/linux-boot-probes/mounted/common/90fallback
4 +++ os-prober/linux-boot-probes/mounted/common/90fallback
5 @@ -33,7 +33,7 @@ for kernpat in /vmlinuz /vmlinux /boot/v
6 # Dracut initramfses are named differently again.
7 initrdname3=$(echo "$kernfile" | sed "s/vmlinu[zx]/initramfs\*/" | sed 's/$/.img/')
8 # And Gentoo's also
9 - initrdname4=$(echo "$kernfile" | sed "s/kernel/initramfs\*/")
10 + initrdname4=$(echo "$kernfile" | sed "s/kernel\|vmlinu[zx]/initramfs\*/")
11 foundinitrd=0
12 for initrd in $(eval ls "$initrdname" "$initrdname1" "$initrdname2" "$initrdname3" "$initrdname4" 2>/dev/null); do
13 if [ "$initrd" != "$kernfile" ] && [ -f "$initrd" ] && [ ! -L "$initrd" ]; then