]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Optimization for booting memtest86-usb.img.
authorlongpanda <admin@ventoy.net>
Mon, 5 Dec 2022 03:19:46 +0000 (11:19 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 5 Dec 2022 03:19:46 +0000 (11:19 +0800)
INSTALL/grub/grub.cfg

index 888ed8c22638b60384a0e0dc54d52524895d8831..4c9a15dbf258288ac1852b856b2dfdb31fb68fe0 100644 (file)
@@ -2320,14 +2320,15 @@ function img_common_menuentry {
     elif [ -f (vtimghd,2)/loader/entries/ubos.conf ]; then
         ventoy_img_ubos
     elif [ -f (vtimghd,2)/etc/openwrt_version ]; then
-        ventoy_img_openwrt
-    elif [ -f (vtimghd,1)/efi/boot/mt86.png ]; then 
-        if [ "$grub_platform" = "pc" ]; then
-            img_unsupport_tip
-        else
-            ventoy_img_memtest86            
-        fi    
+        ventoy_img_openwrt    
     else
+        if [ -f (vtimghd,1)/efi/boot/mt86.png ]; then 
+            if [ "$grub_platform" = "pc" ]; then
+                img_unsupport_tip
+            fi 
+        fi
+
+        #common chain
         vt_linux_chain_data "${vtoy_iso_part}${vt_chosen_path}"
         ventoy_acpi_param ${vtoy_chain_mem_addr} 512
         if [ "$grub_platform" = "pc" ]; then