]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by ventoy_grub...
authorlongpanda <admin@ventoy.net>
Thu, 2 Jun 2022 02:18:16 +0000 (10:18 +0800)
committerlongpanda <admin@ventoy.net>
Thu, 2 Jun 2022 02:18:16 +0000 (10:18 +0800)
INSTALL/ventoy/ipxe.krn
IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c

index b983382cfab2bd593029ec71ede9386eb73f9970..7d43c5f0b6384440dd78d5c074122ac95a309d7d 100644 (file)
Binary files a/INSTALL/ventoy/ipxe.krn and b/INSTALL/ventoy/ipxe.krn differ
index eef81a81463e07baf4d4a332f70208b7d0056e8e..d343b0318d65c5997dd589d62d01c7c1268aaeb5 100644 (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)
     {