]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/grub/grub.cfg
Update README.md
[Ventoy.git] / INSTALL / grub / grub.cfg
index 6872363785865fcf3d5fd17733e1fbd4a49333f3..d89f45e0c242a96d18daeb5e0915ca777d0fb8f4 100644 (file)
@@ -79,6 +79,10 @@ function uefi_windows_menu_func {
     
     vt_windows_chain_data ${1}${chosen_path}
 
+    if [ -n "${vtdebug_flag}" ]; then
+        sleep 5
+    fi
+
     if [ -n "$vtoy_chain_mem_addr" ]; then
         terminal_output  console       
         chainloader ${vtoy_path}/ventoy_x64.efi  env_param=${env_param} isoefi=${LoadIsoEfiDriver} ${vtdebug_flag} mem:${vtoy_chain_mem_addr}:size:${vtoy_chain_mem_size}
@@ -140,8 +144,12 @@ function uefi_iso_menu_func {
         loopback -d loop
     fi
 
-    unset LoadIsoEfiDriver
-   
+    if [ -n "$vtisouefi" ]; then
+        set LoadIsoEfiDriver=on
+    else
+        unset LoadIsoEfiDriver
+    fi
+
     vt_chosen_img_path chosen_path
 
     if vt_is_udf ${1}${chosen_path}; then
@@ -158,6 +166,10 @@ function uefi_iso_menu_func {
     vt_img_sector ${1}${chosen_path}
     
     if [ "$vtoy_os" = "Windows" ]; then
+        if [ "$ventoy_fs_probe" = "iso9660" ]; then
+            set ventoy_compatible=YES
+        fi
+    
         uefi_windows_menu_func  $1
     else
         uefi_linux_menu_func  $1
@@ -271,8 +283,11 @@ function legacy_iso_menu_func {
     vt_check_compatible (loop)
     
     vt_img_sector ${1}${chosen_path}
-   
+
     if [ "$vtoy_os" = "Windows" ]; then
+        if [ "$ventoy_fs_probe" = "iso9660" ]; then
+            set ventoy_compatible=YES
+        fi
         legacy_windows_menu_func  $1
     else
         legacy_linux_menu_func  $1
@@ -291,7 +306,7 @@ function legacy_iso_menu_func {
 #############################################################
 #############################################################
 
-set VENTOY_VERSION="1.0.00"
+set VENTOY_VERSION="1.0.02"
 
 #disable timeout
 unset timeout