]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/grub/grub.cfg
Update README.md
[Ventoy.git] / INSTALL / grub / grub.cfg
index eb50e5ce2ab0209cf0824bf3ccb364797b443029..f6c1ede9f9122966e90b5ca1a1d02b8ccb98ca1d 100644 (file)
@@ -138,6 +138,14 @@ function vt_check_compatible_pe {
     return
 }
 
+function vt_check_compatible_linux {
+    if vt_str_begin "$vt_volume_id" "embootkit"; then
+        set ventoy_compatible=YES
+    fi
+
+    return
+}
+
 function locate_initrd {
     vt_linux_locate_initrd 
 
@@ -829,6 +837,7 @@ function uefi_iso_menu_func {
     elif [ "$vtoy_os" = "Unix" ]; then
         uefi_unix_menu_func "$1" "${chosen_path}"
     else
+        vt_check_compatible_linux (loop)
         uefi_linux_menu_func  "$1" "${chosen_path}"
     fi
 
@@ -1133,6 +1142,7 @@ function legacy_iso_menu_func {
     elif [ "$vtoy_os" = "Unix" ]; then
         legacy_unix_menu_func "$1" "${chosen_path}"
     else
+        vt_check_compatible_linux (loop)
         legacy_linux_menu_func  "$1" "${chosen_path}"
     fi
 }
@@ -1215,9 +1225,8 @@ function iso_common_menuentry {
             echo -e "\n $vt_volume_space $vt_chosen_size $vt_chosen_size_mod\n"
             echo -e "\n The size of the iso file \"$vt_chosen_size\" is invalid. File corrupted ?\n"
             echo -e " 此ISO文件的大小 \"$vt_chosen_size\" 有问题,请确认文件是否损坏。\n"
-            echo -e "\n press ENTER to exit (请按 回车 键返回) ..."
+            echo -e "\n press ENTER to continue (请按 回车 键继续) ..."
             read vtInputKey
-            return
         fi
     fi