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
168 unset VTOY_SEARCH_NO_VTOYEFI
169 echo "BOOTAA64.EFI NOT found ..."
173 menuentry "$VTLANG_LB_SBOOT_X64EFI" --class=boot_uefi --class=F4boot {
174 set VTOY_SEARCH_NO_VTOYEFI=1
175 if search -n -s -f /efi/boot/bootx64.efi; then
176 unset VTOY_SEARCH_NO_VTOYEFI
177 terminal_output console
178 chainloader /efi/boot/bootx64.efi
180 elif search -n -s -f /vtefi/boot/bootx64.efi; then
181 unset VTOY_SEARCH_NO_VTOYEFI
182 terminal_output console
183 chainloader /vtefi/boot/bootx64.efi
186 unset VTOY_SEARCH_NO_VTOYEFI
187 echo "BOOTX64.EFI NOT found ..."
191 menuentry "$VTLANG_LB_SBOOT_XORBOOT" --class=boot_xorboot --class=F4boot {
192 set VTOY_SEARCH_NO_VTOYEFI=1
193 if search -n -s -f /efi/xorboot/xorboot.xor; then
194 unset VTOY_SEARCH_NO_VTOYEFI
195 terminal_output console
196 if [ -f /efi/xorboot/bootx64.efi ]; then
197 chainloader /efi/xorboot/bootx64.efi
198 elif [ -f /efi/xorboot/xorboot.efi ]; then
199 chainloader /efi/xorboot/xorboot.efi
202 elif search -n -s -f /vtefi/xorboot/xorboot.xor; then
203 unset VTOY_SEARCH_NO_VTOYEFI
204 terminal_output console
205 if [ -f /vtefi/xorboot/bootx64.efi ]; then
206 chainloader /vtefi/xorboot/bootx64.efi
207 elif [ -f /vtefi/xorboot/xorboot.efi ]; then
208 chainloader /vtefi/xorboot/xorboot.efi
212 unset VTOY_SEARCH_NO_VTOYEFI
213 echo "xorboot NOT found ..."
221 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {