Hi
> At grub prompt (grub>) print output of > > search -f /efi/microsoft/boot/bootmgfw.efi > echo $grub_platform There is if [ "$grub_platform" = "efi" ]; then before the mentioned code segment to only allow this search on EFI devices Regards Mathias