2 if [ "$grub_platform" = "pc" ]; then
3 menuentry 'Search and boot Windows' --class=boot_windows --class=F4boot {
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 --class=F4boot {
42 if search -n -s -f /grldr; then
45 echo "Grub4dos NOT found ..."
49 menuentry 'Boot the 1st local disk' --class=boot_disk --class=F4boot {
55 menuentry 'Boot the 2nd local disk' --class=boot_disk --class=F4boot {
61 menuentry 'Boot the 3rd local disk' --class=boot_disk --class=F4boot {
69 menuentry 'Search and boot Windows' --class=boot_windows --class=F4boot {
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
79 elif [ -f ($vtoydev,$partid)/efi/Microsoft/Boot/bootmgfw.efi ]; then
80 set root=($vtoydev,$partid)
81 terminal_output console
82 chainloader /efi/Microsoft/Boot/bootmgfw.efi
91 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
92 terminal_output console
93 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
95 elif search -n -s -f /efi/Microsoft/Boot/bootmgfw.efi; then
96 terminal_output console
97 chainloader /efi/Microsoft/Boot/bootmgfw.efi
100 echo "Windows NOT found ..."
104 if [ "$grub_cpu" = "i386" ]; then
105 menuentry 'Search and boot BOOTIA32.EFI' --class=boot_uefi --class=F4boot {
106 set VTOY_SEARCH_NO_VTOYEFI=1
107 if search -n -s -f /efi/boot/bootia32.efi; then
108 unset VTOY_SEARCH_NO_VTOYEFI
109 terminal_output console
110 chainloader /efi/boot/bootia32.efi
113 unset VTOY_SEARCH_NO_VTOYEFI
114 echo "BOOTIA32.EFI NOT found ..."
118 menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
119 set VTOY_SEARCH_NO_VTOYEFI=1
120 if search -n -s -f /efi/xorboot/xorboot32.xor; then
121 unset VTOY_SEARCH_NO_VTOYEFI
122 terminal_output console
123 if [ -f /efi/xorboot/bootia32.efi ]; then
124 chainloader /efi/xorboot/bootia32.efi
125 elif [ -f /efi/xorboot/xorboot.efi ]; then
126 chainloader /efi/xorboot/xorboot.efi
130 unset VTOY_SEARCH_NO_VTOYEFI
131 echo "xorboot NOT found ..."
134 elif [ "$grub_cpu" = "arm64" ]; then
135 menuentry 'Search and boot BOOTAA64.EFI' --class=boot_uefi --class=F4boot {
136 set VTOY_SEARCH_NO_VTOYEFI=1
137 if search -n -s -f /efi/boot/bootaa64.efi; then
138 unset VTOY_SEARCH_NO_VTOYEFI
139 terminal_output console
140 chainloader /efi/boot/bootaa64.efi
143 unset VTOY_SEARCH_NO_VTOYEFI
144 echo "BOOTAA64.EFI NOT found ..."
148 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi --class=F4boot {
149 set VTOY_SEARCH_NO_VTOYEFI=1
150 if search -n -s -f /efi/boot/bootx64.efi; then
151 unset VTOY_SEARCH_NO_VTOYEFI
152 terminal_output console
153 chainloader /efi/boot/bootx64.efi
156 unset VTOY_SEARCH_NO_VTOYEFI
157 echo "BOOTX64.EFI NOT found ..."
161 menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
162 set VTOY_SEARCH_NO_VTOYEFI=1
163 if search -n -s -f /efi/xorboot/xorboot.xor; then
164 unset VTOY_SEARCH_NO_VTOYEFI
165 terminal_output console
166 if [ -f /efi/xorboot/bootx64.efi ]; then
167 chainloader /efi/xorboot/bootx64.efi
168 elif [ -f /efi/xorboot/xorboot.efi ]; then
169 chainloader /efi/xorboot/xorboot.efi
173 unset VTOY_SEARCH_NO_VTOYEFI
174 echo "xorboot NOT found ..."
182 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {