Skip to content

linux-boot-prober fixes and enhancements

Pascal Hambourg requested to merge pham/os-prober:devel into master
  • 40grub2: Add support for linux16/initrd16 and linuxefi/initrdefi commands used in grub.cfg by some distributions. (Fedora has been seen to use linux16 and openSUSE has been seen to use linuxefi) However some non-Linux programs such as memtest86(+) may be booted with linux16, so try to detect and discard them.

  • 40grub2: Extend detection of foreign menu entries in non-English languages. The pattern (on /dev/*) used to detect and discard menu entries imported in grub.cfg from other systems does not match titles generated with non-English languages, so use more generic pattern (*/dev/*) instead.

  • 40grub2: Code deduplication between linux*) and initrd*).

  • 40grub2: Use of extended regex to remove some \ and improve readability.

  • linux-boot-prober: Fix wrong $bootpart value when the boot partition is already mounted on $mpoint/boot. (actually it does not even check that the right partition is mounted on $mpoint/boot, but let's fix that later) Otherwise it prevents 40grub2 from detecting kernels properly.

Merge request reports

Loading