2 if [ "$grub_platform" = "pc" ]; then
3 menuentry 'Search and boot Windows' --class=boot_windows {
6 while [ $partid -le 128 ]; do
7 if vt_check_part_exist $partid; then
8 for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
9 if [ -f ($vtoydev,$partid)/$bt ]; then
10 set root=($vtoydev,$partid)
21 if search -n -s -f /Boot/BCD; then
22 for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
24 if regexp '^hd0' $root; then
33 elif search -n -s -f /NTDETECT.COM; then
37 echo "Windows NOT found ..."
41 menuentry 'Search and boot Grub4dos' --class=boot_g4d {
42 if search -n -s -f /grldr; then
45 echo "Grub4dos NOT found ..."
49 menuentry 'Boot the 1st local disk' --class=boot_disk {
55 menuentry 'Boot the 2nd local disk' --class=boot_disk {
61 menuentry 'Boot the 3rd local disk' --class=boot_disk {
69 menuentry 'Search and boot Windows' --class=boot_windows {
72 while [ $partid -le 128 ]; do
73 if vt_check_part_exist $partid; then
74 if [ -f ($vtoydev,$partid)/EFI/Microsoft/Boot/bootmgfw.efi ]; then
75 set root=($vtoydev,$partid)
76 terminal_output console
77 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
86 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
87 terminal_output console
88 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
91 echo "Windows NOT found ..."
95 if [ "$grub_cpu" = "i386" ]; then
96 menuentry 'Search and boot BOOTIA32.EFI' --class=boot_uefi {
97 set VTOY_SEARCH_NO_VTOYEFI=1
98 if search -n -s -f /efi/boot/bootia32.efi; then
99 unset VTOY_SEARCH_NO_VTOYEFI
100 terminal_output console
101 chainloader /efi/boot/bootia32.efi
104 unset VTOY_SEARCH_NO_VTOYEFI
105 echo "BOOTIA32.EFI NOT found ..."
108 elif [ "$grub_cpu" = "arm64" ]; then
109 menuentry 'Search and boot BOOTAA64.EFI' --class=boot_uefi {
110 set VTOY_SEARCH_NO_VTOYEFI=1
111 if search -n -s -f /efi/boot/bootaa64.efi; then
112 unset VTOY_SEARCH_NO_VTOYEFI
113 terminal_output console
114 chainloader /efi/boot/bootaa64.efi
117 unset VTOY_SEARCH_NO_VTOYEFI
118 echo "BOOTAA64.EFI NOT found ..."
122 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {
123 set VTOY_SEARCH_NO_VTOYEFI=1
124 if search -n -s -f /efi/boot/bootx64.efi; then
125 unset VTOY_SEARCH_NO_VTOYEFI
126 terminal_output console
127 chainloader /efi/boot/bootx64.efi
130 unset VTOY_SEARCH_NO_VTOYEFI
131 echo "BOOTX64.EFI NOT found ..."
140 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {