if search -n -s -f /Boot/BCD; then
for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
if [ -f /$bt ]; then
- ntldr /$bt
+ if regexp '^hd0' $root; then
+ ntldr /$bt
+ else
+ drivemap -s hd0 $root
+ ntldr /$bt
+ fi
break
fi
done
fi
}
- menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {
+ menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {
+ set VTOY_SEARCH_NO_VTOYEFI=1
if search -n -s -f /efi/boot/bootx64.efi; then
+ unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /efi/boot/bootx64.efi
boot
else
+ unset VTOY_SEARCH_NO_VTOYEFI
echo "BOOTX64.EFI NOT found ..."
fi
}