mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-02-04 18:36:04 -05:00
Firstly try to use chainload to boot .efi files.
This commit is contained in:
parent
620229508b
commit
75517039a1
@ -1445,21 +1445,21 @@ function efi_common_menuentry {
|
||||
vt_vlnk_dst="${vtoy_iso_part}${vt_chosen_path}"
|
||||
fi
|
||||
|
||||
vt_concat_efi_iso "${vt_vlnk_dst}" vtoy_iso_buf
|
||||
|
||||
ventoy_debug_pause
|
||||
|
||||
ventoy_cli_console
|
||||
|
||||
unset vtoy_dotefi_retry
|
||||
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
|
||||
|
||||
if [ -n "$vtoy_dotefi_retry" ]; then
|
||||
unset vtoy_dotefi_retry
|
||||
#first try with chainload
|
||||
set vtOldRoot=$root
|
||||
set root=$vtoy_iso_part
|
||||
chainloader "${vt_vlnk_dst}"
|
||||
boot
|
||||
fi
|
||||
|
||||
#retry with isoboot
|
||||
set root=$vtOldRoot
|
||||
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
|
||||
|
||||
ventoy_gui_console
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user