mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-01 10:13:47 -04:00
1.0.08beta2
This commit is contained in:
parent
ad9a031092
commit
212c9cdbc9
Binary file not shown.
@ -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 {
|
function get_os_type {
|
||||||
set vtoy_os=Linux
|
set vtoy_os=Linux
|
||||||
for file in "efi/microsoft" "sources/boot.wim" "boot/bcd" "bootmgr.efi" "boot/etfsboot.com"; do
|
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
|
#disable timeout
|
||||||
unset timeout
|
unset timeout
|
||||||
@ -404,6 +431,9 @@ set VTOY_MEM_DISK_STR="MEMDISK"
|
|||||||
set VTOY_ISO_RAW_STR="ISO RAW"
|
set VTOY_ISO_RAW_STR="ISO RAW"
|
||||||
set VTOY_ISO_UEFI_DRV_STR="UEFI FS"
|
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
|
vt_device $root vtoy_dev
|
||||||
|
|
||||||
if [ "$vtoy_dev" = "tftp" ]; then
|
if [ "$vtoy_dev" = "tftp" ]; then
|
||||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 269 KiB After Width: | Height: | Size: 257 KiB |
@ -49,6 +49,14 @@ terminal-box: "terminal_box_*.png"
|
|||||||
highlight_style = "*"
|
highlight_style = "*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ hbox{
|
||||||
|
left = 40%
|
||||||
|
top = 95%
|
||||||
|
width = 10%
|
||||||
|
height = 25
|
||||||
|
+ label {text = "F1:Memdisk" color = "blue" align = "left"}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
+ hbox{
|
+ hbox{
|
||||||
left = 90%
|
left = 90%
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user