Commit 75517039 authored by longpanda's avatar longpanda
Browse files

Firstly try to use chainload to boot .efi files.

parent 62022950
...@@ -1445,21 +1445,21 @@ function efi_common_menuentry { ...@@ -1445,21 +1445,21 @@ function efi_common_menuentry {
vt_vlnk_dst="${vtoy_iso_part}${vt_chosen_path}" vt_vlnk_dst="${vtoy_iso_part}${vt_chosen_path}"
fi fi
vt_concat_efi_iso "${vt_vlnk_dst}" vtoy_iso_buf
ventoy_debug_pause ventoy_debug_pause
ventoy_cli_console ventoy_cli_console
unset vtoy_dotefi_retry #first try with chainload
chainloader ${vtoy_path}/ventoy_${VTOY_EFI_ARCH}.efi memdisk env_param=${env_param} dotefi isoefi=on ${vtdebug_flag} mem:${vtoy_iso_buf_addr}:size:${vtoy_iso_buf_size} set vtOldRoot=$root
set root=$vtoy_iso_part
chainloader "${vt_vlnk_dst}"
boot boot
if [ -n "$vtoy_dotefi_retry" ]; then #retry with isoboot
unset vtoy_dotefi_retry set root=$vtOldRoot
chainloader "${vt_vlnk_dst}" vt_concat_efi_iso "${vt_vlnk_dst}" vtoy_iso_buf
chainloader ${vtoy_path}/ventoy_${VTOY_EFI_ARCH}.efi memdisk env_param=${env_param} dotefi isoefi=on ${vtdebug_flag} mem:${vtoy_iso_buf_addr}:size:${vtoy_iso_buf_size}
boot boot
fi
ventoy_gui_console ventoy_gui_console
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment