From: longpanda Date: Thu, 2 Jun 2022 02:18:16 +0000 (+0800) Subject: Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by ventoy_grub... X-Git-Tag: v1.0.76~10 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/d8bca311b2e72cba01b5d49d1a4a5c40a4fe4488?ds=inline Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by ventoy_grub.cfg in Legacy BIOS mode. --- diff --git a/INSTALL/ventoy/ipxe.krn b/INSTALL/ventoy/ipxe.krn index b983382..7d43c5f 100644 Binary files a/INSTALL/ventoy/ipxe.krn and b/INSTALL/ventoy/ipxe.krn differ diff --git a/IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c b/IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c index eef81a8..d343b03 100644 --- a/IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c +++ b/IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c @@ -1443,8 +1443,15 @@ unsigned int ventoy_int13_hook (ventoy_chain_head *chain) if (chain->os_param.vtoy_reserved[6]) { - g_drive_map1 = 0x80; - g_drive_map2 = 0x81; + if (g_hddmode) + { + /* drive map no need for linux vtoy/img boot */ + } + else + { + g_drive_map1 = 0x80; + g_drive_map2 = 0x81; + } } else if (chain->disk_drive >= 0x80 && chain->drive_map >= 0x80) {