Commit d8bca311 authored by longpanda's avatar longpanda
Browse files

Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by...

Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by ventoy_grub.cfg in Legacy BIOS mode.
parent 025425f2
No preview for this file type
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment