]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Add support for Emergency Boot Kit
authorlongpanda <admin@ventoy.net>
Tue, 31 Aug 2021 11:43:30 +0000 (19:43 +0800)
committerlongpanda <admin@ventoy.net>
Tue, 31 Aug 2021 11:43:30 +0000 (19:43 +0800)
INSTALL/grub/grub.cfg

index 0b4415ad1806132293e25fda56f857c875c91904..f6c1ede9f9122966e90b5ca1a1d02b8ccb98ca1d 100644 (file)
@@ -138,6 +138,14 @@ function vt_check_compatible_pe {
     return
 }
 
     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 
 
 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
     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
 
         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
     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
 }
         legacy_linux_menu_func  "$1" "${chosen_path}"
     fi
 }