os-prober-gentoo-fix.patch 841 B

1234567891011121314
  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