Commit 212c9cdb authored by longpanda's avatar longpanda
Browse files

1.0.08beta2

parent ad9a0310
......@@ -16,6 +16,33 @@
#
#************************************************************************************
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
......@@ -395,7 +422,7 @@ function legacy_iso_memdisk {
#############################################################
#############################################################
set VENTOY_VERSION="1.0.08b1"
set VENTOY_VERSION="1.0.08b2"
#disable timeout
unset timeout
......@@ -404,6 +431,9 @@ set VTOY_MEM_DISK_STR="MEMDISK"
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
......
......@@ -49,6 +49,14 @@ terminal-box: "terminal_box_*.png"
highlight_style = "*"
}
+ hbox{
left = 40%
top = 95%
width = 10%
height = 25
+ label {text = "F1:Memdisk" color = "blue" align = "left"}
}
+ hbox{
left = 90%
......
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