mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 00:11:15 +00:00
Auto use memdisk mode for Memtest86+ iso file.
This commit is contained in:
@@ -1303,14 +1303,30 @@ function iso_common_menuentry {
|
||||
set vtcompat=1
|
||||
fi
|
||||
|
||||
|
||||
# auto memdisk mode for some special ISO files
|
||||
vt_iso_vd_id_parse "${vtoy_iso_part}${vt_chosen_path}"
|
||||
unset vtMemDiskBoot
|
||||
if vt_check_mode 0; then
|
||||
set vtMemDiskBoot=1
|
||||
else
|
||||
if [ "$grub_platform" = "pc" ]; then
|
||||
if vt_iso_vd_id_begin 1 0 "Memtest86+"; then
|
||||
set vtMemDiskBoot=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
vt_iso_vd_id_clear
|
||||
|
||||
|
||||
if [ "$grub_platform" = "pc" ]; then
|
||||
if vt_check_mode 0; then
|
||||
if [ -n "$vtMemDiskBoot" ]; then
|
||||
legacy_iso_memdisk $vtoy_iso_part "$vt_chosen_path"
|
||||
else
|
||||
legacy_iso_menu_func $vtoy_iso_part "$vt_chosen_path"
|
||||
fi
|
||||
else
|
||||
if vt_check_mode 0; then
|
||||
if [ -n "$vtMemDiskBoot" ]; then
|
||||
uefi_iso_memdisk $vtoy_iso_part "$vt_chosen_path"
|
||||
else
|
||||
uefi_iso_menu_func $vtoy_iso_part "$vt_chosen_path"
|
||||
|
Reference in New Issue
Block a user