mirror of https://github.com/ventoy/Ventoy.git
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:
parent
025425f260
commit
d8bca311b2
Binary file not shown.
|
@ -1443,8 +1443,15 @@ unsigned int ventoy_int13_hook (ventoy_chain_head *chain)
|
||||||
|
|
||||||
if (chain->os_param.vtoy_reserved[6])
|
if (chain->os_param.vtoy_reserved[6])
|
||||||
{
|
{
|
||||||
g_drive_map1 = 0x80;
|
if (g_hddmode)
|
||||||
g_drive_map2 = 0x81;
|
{
|
||||||
|
/* 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)
|
else if (chain->disk_drive >= 0x80 && chain->drive_map >= 0x80)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue