|
|
|
@ -16,6 +16,12 @@
|
|
|
|
|
#
|
|
|
|
|
#************************************************************************************
|
|
|
|
|
|
|
|
|
|
if [ "$grub_platform" = "pc" ]; then
|
|
|
|
|
insmod setkey
|
|
|
|
|
insmod regexp
|
|
|
|
|
insmod video_fb
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
function ventoy_pause {
|
|
|
|
|
echo "press Enter to continue ......"
|
|
|
|
|
read vtTmpPause
|
|
|
|
@ -2346,6 +2352,28 @@ function img_unsupport_menuentry {
|
|
|
|
|
common_unsupport_menuentry
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function mimg_common_menuentry {
|
|
|
|
|
vt_chosen_img_path vt_chosen_path vt_chosen_size vt_chosen_name
|
|
|
|
|
|
|
|
|
|
if vt_check_password "${vt_chosen_path}"; then
|
|
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "memdisk mode boot for $vt_chosen_path"
|
|
|
|
|
echo ""
|
|
|
|
|
ventoy_debug_pause
|
|
|
|
|
|
|
|
|
|
if [ "$grub_platform" = "pc" ]; then
|
|
|
|
|
legacy_img_memdisk $vtoy_iso_part "$vt_chosen_path"
|
|
|
|
|
else
|
|
|
|
|
vt_load_img_memdisk "$vtoy_iso_part$vt_chosen_path" vtoy_img_buf
|
|
|
|
|
ventoy_cli_console
|
|
|
|
|
chainloader ${vtoy_path}/ventoy_${VTOY_EFI_ARCH}.efi memdisk env_param=${env_param} isoefi=${LoadIsoEfiDriver} ${vtdebug_flag} mem:${vtoy_img_buf_addr}:size:${vtoy_img_buf_size}
|
|
|
|
|
boot
|
|
|
|
|
ventoy_gui_console
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
|
#############################################################
|
|
|
|
|
#############################################################
|
|
|
|
|