configfile $prefix/power.cfg
}
-function ventoy_diagnosis {
+function ventoy_diagnosis {
+ vt_enum_video_mode
configfile $prefix/debug.cfg
}
function miso_common_menuentry {
vt_chosen_img_path vt_chosen_path vt_chosen_size
+ echo "memdisk mode boot for $vt_chosen_path"
+ echo ""
+ ventoy_debug_pause
+
if [ "$grub_platform" = "pc" ]; then
legacy_iso_memdisk $vtoy_iso_part $vt_chosen_path
else
fi
vt_chosen_img_path vt_chosen_path vt_chosen_size
- vt_patch_vhdboot ${vtoy_iso_part} ${vt_chosen_path}
+ vt_patch_vhdboot ${vt_chosen_path}
ventoy_debug_pause
#############################################################
#############################################################
-set VENTOY_VERSION="1.0.20"
+set VENTOY_VERSION="1.0.21"
# Default menu display mode, you can change it as you want.
# 0: List mode
if [ "$vtoy_dev" = "tftp" ]; then
set vtoy_path=($root)
for vtid in 0 1 2 3; do
- if [ -d (hd$vtid,2)/ventoy ]; then
+ if [ -f (hd$vtid,2)/ventoy/ventoy.cpio ]; then
set vtoy_iso_part=(hd$vtid,1)
set vtoy_efi_part=(hd$vtid,2)
+ set vtoydev=hd$vtid
break
fi
done
set vtoy_path=($root)/ventoy
fi
+ set vtoydev=$vtoy_dev
set vtoy_iso_part=($vtoy_dev,1)
set vtoy_efi_part=($vtoy_dev,2)
loadfont unicode
set vt_plugin_path=$vtoy_iso_part
fi
+#Load Partition Table
+vt_load_part_table $vtoydev
#Load Plugin
if [ -f $vtoy_iso_part/ventoy/ventoy.json ]; then
if [ $VTOY_DEFAULT_MENU_MODE -eq 0 ]; then
set VTOY_F3_CMD="vt_dynamic_menu 1 1"
- set VTOY_HOTKEY_TIP="F1:Memdisk F2:Power F3:TreeView F4:Localboot F5:Debug F6:ExMenu"
+ set VTOY_HOTKEY_TIP="F1:Memdisk F2:Power F3:TreeView F4:Localboot F5:Tools F6:ExMenu"
else
set VTOY_F3_CMD="vt_dynamic_menu 1 0"
- set VTOY_HOTKEY_TIP="F1:Memdisk F2:Power F3:ListView F4:Localboot F5:Debug F6:ExMenu"
+ set VTOY_HOTKEY_TIP="F1:Memdisk F2:Power F3:ListView F4:Localboot F5:Tools F6:ExMenu"
fi
if [ -n "$vtoy_gfxmode" ]; then
set gfxmode=$vtoy_gfxmode
+ set gfxpayload=keep
else
- set gfxmode=1920x1080,1366x768,1024x768,800x600,auto
+ set gfxmode=1920x1080,1366x768,1024x768,800x600,auto
+ set gfxpayload=keep
fi
if [ "$vtoy_display_mode" = "CLI" ]; then
#export necessary variable
export theme
export gfxmode
-export vtoy_dev
+export vtoydev
export vtoy_iso_part
export vtoy_efi_part
export VENTOY_VERSION
+export VTOY_CUR_VIDEO_MODE