Skip to content

Two trivial patches for grub.d/30_os-prober

Pascal Hambourg requested to merge pham/grub:os-prober-patches into master

1- Skip drivemap for Windows 8 to 19, Server 2012 and later

If Windows Vista, Seven and Server 2008 do not need drivemap, then later versions using bootmgr too should not need it either.

(This replaces MR !40 (closed) which updated directly the upstream script)

2- Conditionally show or hide chain and efi menu entries

Show 'chain' menu entries only if not booted in EFI mode. Show 'efi' menu entries only if booted in EFI mode.

This allows grub-mkconfig to include EFI and BIOS/legacy boot loaders regardless of the current boot mode on systems which support both EFI and BIOS/legacy boot.

Note: For this to be useful os-prober must also be updated to detect both EFI and non-EFI boot loaders regardless of the current boot mode.

Merge request reports

Loading