#
#************************************************************************************
+function ventoy_boot_from_hdd {
+ if [ "$grub_platform" = "pc" ]; then
+ if [ "$iso_path" = "(hd0,1)" ]; then
+ if [ -b (hd1) ]; then
+ set root=(hd1)
+ drivemap -s hd0 hd1
+ chainloader +1
+ boot
+ else
+ echo "No local hdd found ..."
+ sleep 3
+ fi
+ else
+ set root=(hd0)
+ chainloader +1
+ boot
+ fi
+ else
+ exit
+ fi
+}
+
+function ventoy_reboot {
+ reboot
+}
+
+
function get_os_type {
set vtoy_os=Linux
for file in "efi/microsoft" "sources/boot.wim" "boot/bcd" "bootmgr.efi" "boot/etfsboot.com"; do
#############################################################
#############################################################
-set VENTOY_VERSION="1.0.08b1"
+set VENTOY_VERSION="1.0.08b2"
#disable timeout
unset timeout
set VTOY_ISO_RAW_STR="ISO RAW"
set VTOY_ISO_UEFI_DRV_STR="UEFI FS"
+set VTOY_F2_CMD="ventoy_boot_from_hdd"
+set VTOY_F3_CMD="ventoy_reboot"
+
vt_device $root vtoy_dev
if [ "$vtoy_dev" = "tftp" ]; then