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
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 --class=F4boot {
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 ..."
109 menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
110 set VTOY_SEARCH_NO_VTOYEFI=1
111 if search -n -s -f /efi/xorboot/xorboot32.xor; then
112 unset VTOY_SEARCH_NO_VTOYEFI
113 terminal_output console
114 if [ -f /efi/xorboot/bootia32.efi ]; then
115 chainloader /efi/xorboot/bootia32.efi
116 elif [ -f /efi/xorboot/xorboot.efi ]; then
117 chainloader /efi/xorboot/xorboot.efi
121 unset VTOY_SEARCH_NO_VTOYEFI
122 echo "xorboot NOT found ..."
125 elif [ "$grub_cpu" = "arm64" ]; then
126 menuentry 'Search and boot BOOTAA64.EFI' --class=boot_uefi --class=F4boot {
127 set VTOY_SEARCH_NO_VTOYEFI=1
128 if search -n -s -f /efi/boot/bootaa64.efi; then
129 unset VTOY_SEARCH_NO_VTOYEFI
130 terminal_output console
131 chainloader /efi/boot/bootaa64.efi
134 unset VTOY_SEARCH_NO_VTOYEFI
135 echo "BOOTAA64.EFI NOT found ..."
139 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi --class=F4boot {
140 set VTOY_SEARCH_NO_VTOYEFI=1
141 if search -n -s -f /efi/boot/bootx64.efi; then
142 unset VTOY_SEARCH_NO_VTOYEFI
143 terminal_output console
144 chainloader /efi/boot/bootx64.efi
147 unset VTOY_SEARCH_NO_VTOYEFI
148 echo "BOOTX64.EFI NOT found ..."
152 menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
153 set VTOY_SEARCH_NO_VTOYEFI=1
154 if search -n -s -f /efi/xorboot/xorboot.xor; then
155 unset VTOY_SEARCH_NO_VTOYEFI
156 terminal_output console
157 if [ -f /efi/xorboot/bootx64.efi ]; then
158 chainloader /efi/xorboot/bootx64.efi
159 elif [ -f /efi/xorboot/xorboot.efi ]; then
160 chainloader /efi/xorboot/xorboot.efi
164 unset VTOY_SEARCH_NO_VTOYEFI
165 echo "xorboot NOT found ..."
173 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {