2 if [ "$grub_platform" = "pc" ]; then
3 menuentry "$VTLANG_LB_SBOOT_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 "$VTLANG_LB_SBOOT_G4D" --class=boot_g4d --class=F4boot {
42 if search -n -s -f /grldr; then
45 echo "Grub4dos NOT found ..."
49 menuentry "$VTLANG_LB_SBOOT_HDD1" --class=boot_disk --class=F4boot {
55 menuentry "$VTLANG_LB_SBOOT_HDD2" --class=boot_disk --class=F4boot {
61 menuentry "$VTLANG_LB_SBOOT_HDD3" --class=boot_disk --class=F4boot {
69 menuentry "$VTLANG_LB_SBOOT_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
84 elif [ -f ($vtoydev,$partid)/VTEFI/Microsoft/Boot/bootmgfw.efi ]; then
85 set root=($vtoydev,$partid)
86 terminal_output console
87 chainloader /VTEFI/Microsoft/Boot/bootmgfw.efi
96 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
97 terminal_output console
98 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
100 elif search -n -s -f /efi/Microsoft/Boot/bootmgfw.efi; then
101 terminal_output console
102 chainloader /efi/Microsoft/Boot/bootmgfw.efi
105 echo "Windows NOT found ..."
109 if [ "$grub_cpu" = "i386" ]; then
110 menuentry "$VTLANG_LB_SBOOT_IA32EFI" --class=boot_uefi --class=F4boot {
111 set VTOY_SEARCH_NO_VTOYEFI=1
112 if search -n -s -f /efi/boot/bootia32.efi; then
113 unset VTOY_SEARCH_NO_VTOYEFI
114 terminal_output console
115 chainloader /efi/boot/bootia32.efi
117 elif search -n -s -f /vtefi/boot/bootia32.efi; then
118 unset VTOY_SEARCH_NO_VTOYEFI
119 terminal_output console
120 chainloader /vtefi/boot/bootia32.efi
123 unset VTOY_SEARCH_NO_VTOYEFI
124 echo "BOOTIA32.EFI NOT found ..."
128 menuentry "$VTLANG_LB_SBOOT_XORBOOT" --class=boot_xorboot --class=F4boot {
129 set VTOY_SEARCH_NO_VTOYEFI=1
130 if search -n -s -f /efi/xorboot/xorboot32.xor; then
131 unset VTOY_SEARCH_NO_VTOYEFI
132 terminal_output console
133 if [ -f /efi/xorboot/bootia32.efi ]; then
134 chainloader /efi/xorboot/bootia32.efi
135 elif [ -f /efi/xorboot/xorboot.efi ]; then
136 chainloader /efi/xorboot/xorboot.efi
139 elif search -n -s -f /vtefi/xorboot/xorboot32.xor; then
140 unset VTOY_SEARCH_NO_VTOYEFI
141 terminal_output console
142 if [ -f /vtefi/xorboot/bootia32.efi ]; then
143 chainloader /vtefi/xorboot/bootia32.efi
144 elif [ -f /vtefi/xorboot/xorboot.efi ]; then
145 chainloader /vtefi/xorboot/xorboot.efi
149 unset VTOY_SEARCH_NO_VTOYEFI
150 echo "xorboot NOT found ..."
153 elif [ "$grub_cpu" = "arm64" ]; then
154 menuentry "$VTLANG_LB_SBOOT_AA64EFI" --class=boot_uefi --class=F4boot {
155 set VTOY_SEARCH_NO_VTOYEFI=1
156 if search -n -s -f /efi/boot/bootaa64.efi; then
157 unset VTOY_SEARCH_NO_VTOYEFI
158 terminal_output console
159 chainloader /efi/boot/bootaa64.efi
161 elif search -n -s -f /vtefi/boot/bootaa64.efi; then
162 unset VTOY_SEARCH_NO_VTOYEFI
163 terminal_output console
164 chainloader /vtefi/boot/bootaa64.efi
167 unset VTOY_SEARCH_NO_VTOYEFI
168 echo "BOOTAA64.EFI NOT found ..."
172 menuentry "$VTLANG_LB_SBOOT_X64EFI" --class=boot_uefi --class=F4boot {
173 set VTOY_SEARCH_NO_VTOYEFI=1
174 if search -n -s -f /efi/boot/bootx64.efi; then
175 unset VTOY_SEARCH_NO_VTOYEFI
176 terminal_output console
177 chainloader /efi/boot/bootx64.efi
179 elif search -n -s -f /vtefi/boot/bootx64.efi; then
180 unset VTOY_SEARCH_NO_VTOYEFI
181 terminal_output console
182 chainloader /vtefi/boot/bootx64.efi
185 unset VTOY_SEARCH_NO_VTOYEFI
186 echo "BOOTX64.EFI NOT found ..."
190 menuentry "$VTLANG_LB_SBOOT_XORBOOT" --class=boot_xorboot --class=F4boot {
191 set VTOY_SEARCH_NO_VTOYEFI=1
192 if search -n -s -f /efi/xorboot/xorboot.xor; then
193 unset VTOY_SEARCH_NO_VTOYEFI
194 terminal_output console
195 if [ -f /efi/xorboot/bootx64.efi ]; then
196 chainloader /efi/xorboot/bootx64.efi
197 elif [ -f /efi/xorboot/xorboot.efi ]; then
198 chainloader /efi/xorboot/xorboot.efi
201 elif search -n -s -f /vtefi/xorboot/xorboot.xor; then
202 unset VTOY_SEARCH_NO_VTOYEFI
203 terminal_output console
204 if [ -f /vtefi/xorboot/bootx64.efi ]; then
205 chainloader /vtefi/xorboot/bootx64.efi
206 elif [ -f /vtefi/xorboot/xorboot.efi ]; then
207 chainloader /vtefi/xorboot/xorboot.efi
211 unset VTOY_SEARCH_NO_VTOYEFI
212 echo "xorboot NOT found ..."
220 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {