Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by ventoy_grub.cfg in Legacy BIOS mode.

This commit is contained in:
longpanda 2022-06-02 10:18:16 +08:00
parent 025425f260
commit d8bca311b2
2 changed files with 9 additions and 2 deletions

Binary file not shown.

View File

@ -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)
{