]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/debug.cfg
Fix the "Unsupported vtoy type unknown" error when boot a VDI file created by Virtual...
[Ventoy.git] / INSTALL / grub / debug.cfg
1 #
2 # VTLANG_CTRL_TEMP_SET must be the first
3 # And the inside item order can not be changed
4 #
5 submenu "$VTLANG_CTRL_TEMP_SET" --class=debug_temp_set --class=F5tool {
6 menuentry "[ $VTOY_WIN11_BYPASS_CHECK ] $VTLANG_WIN11_BYPASS_CHECK" --class=debug_temp_win11_bypass --class=debug_temp_set --class=F5tool \
7 VTOY_RUN_SET0 {
8 if [ "$VTOY_WIN11_BYPASS_CHECK" = "0" ]; then
9 set VTOY_WIN11_BYPASS_CHECK=1
10 else
11 set VTOY_WIN11_BYPASS_CHECK=0
12 fi
13 }
14
15 menuentry "[ $VTOY_WIN11_BYPASS_NRO ] $VTLANG_WIN11_BYPASS_NRO" --class=debug_temp_win11_nro --class=debug_temp_set --class=F5tool \
16 VTOY_RUN_SET1 {
17 if [ "$VTOY_WIN11_BYPASS_NRO" = "0" ]; then
18 set VTOY_WIN11_BYPASS_NRO=1
19 else
20 set VTOY_WIN11_BYPASS_NRO=0
21 fi
22 }
23
24 menuentry "[ $VTOY_SECONDARY_BOOT_MENU ] $VTLANG_SECONDARY_BOOT_MENU" --class=debug_temp_second_menu --class=debug_temp_set --class=F5tool \
25 VTOY_RUN_SET3 {
26 if [ "$VTOY_SECONDARY_BOOT_MENU" = "0" ]; then
27 set VTOY_SECONDARY_BOOT_MENU=1
28 else
29 set VTOY_SECONDARY_BOOT_MENU=0
30 fi
31 }
32
33 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
34 echo "Return ..."
35 }
36 }
37
38
39 submenu "$VTLANG_MENU_LANG" --class=debug_menu_lang --class=F5tool {
40 source $prefix/menulang.cfg
41 }
42
43 source $prefix/power.cfg
44 source $prefix/hwinfo.cfg
45 source $prefix/keyboard.cfg
46
47 submenu "$VTLANG_RESOLUTION_CFG" --class=debug_resolution --class=F5tool {
48 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
49 echo "Return ..."
50 }
51
52 vt_update_cur_video_mode VT_CUR_MODE
53 set vdid=0
54 while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
55 vt_get_video_mode $vdid vtCurMode
56
57 unset vtActive
58 if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
59 set vtActive="[*]"
60 fi
61
62 menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
63 terminal_output console
64 set gfxmode=$1
65 terminal_output gfxterm
66 if [ "$vtoy_res_fit" = "1" ]; then
67 vt_set_theme switch
68 fi
69 }
70
71 vt_incr vdid 1
72 done
73 }
74
75 submenu "$VTLANG_SCREEN_MODE" --class=debug_screen_mode --class=F5tool {
76 menuentry "$VTLANG_SCREEN_TEXT_MODE" --class=debug_text_mode --class=debug_screen_mode --class=F5tool {
77 vt_push_menu_lang en_US
78 terminal_output console
79 }
80 menuentry "$VTLANG_SCREEN_GUI_MODE" --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
81 terminal_output gfxterm
82 vt_pop_menu_lang
83 }
84 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
85 echo "Return ..."
86 }
87 }
88
89 if [ -n "$VTOY_THEME_COUNT" -a $VTOY_THEME_COUNT -gt 1 ]; then
90 submenu "$VTLANG_THEME_SELECT" --class=debug_theme_select --class=F5tool {
91 vt_select_theme_cfg
92 }
93 fi
94
95 if [ "$grub_platform" != "pc" ]; then
96 submenu "$VTLANG_UEFI_UTIL" --class=debug_util --class=F5tool {
97 menuentry "$VTLANG_UTIL_SHOW_EFI_DRV" --class=debug_util_efidrv --class=debug_util --class=F5tool {
98 vt_push_pager
99 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=show_efi_drivers
100 boot
101 vt_pop_pager
102 echo -en "\n$VTLANG_ENTER_EXIT ..."
103 read vtInputKey
104 }
105
106 menuentry "$VTLANG_UTIL_FIX_BLINIT_FAIL" --class=debug_util_blinit --class=debug_util --class=F5tool {
107 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
108 boot
109 echo -en "\n$VTLANG_ENTER_EXIT ..."
110 read vtInputKey
111 }
112
113 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
114 echo "Return ..."
115 }
116 }
117 fi
118
119
120 submenu "$VTLANG_JSON_CHK_JSON" --class=debug_json --class=F5tool {
121 menuentry "$VTLANG_JSON_CHK_CONTROL" --class=debug_control --class=debug_json --class=F5tool {
122 set pager=1
123 vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
124
125 echo -en "\n$VTLANG_ENTER_EXIT ..."
126 read vtInputKey
127 unset pager
128 }
129
130 menuentry "$VTLANG_JSON_CHK_THEME" --class=debug_theme --class=debug_json --class=F5tool {
131 set pager=1
132 vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
133
134 echo -en "\n$VTLANG_ENTER_EXIT ..."
135 read vtInputKey
136 unset pager
137 }
138
139 menuentry "$VTLANG_JSON_CHK_AUTOINS" --class=debug_autoinstall --class=debug_json --class=F5tool {
140 set pager=1
141 vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
142
143 echo -en "\n$VTLANG_ENTER_EXIT ..."
144 read vtInputKey
145 unset pager
146 }
147
148 menuentry "$VTLANG_JSON_CHK_PERSIST" --class=debug_persistence --class=debug_json --class=F5tool {
149 set pager=1
150 vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
151
152 echo -e "\n############### dump persistence ###############"
153 vt_dump_persistence
154
155 echo -en "\n$VTLANG_ENTER_EXIT ..."
156 read vtInputKey
157 unset pager
158 }
159
160 menuentry "$VTLANG_JSON_CHK_MENU_ALIAS" --class=debug_menualias --class=debug_json --class=F5tool {
161 set pager=1
162 vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
163
164 echo -en "\n$VTLANG_ENTER_EXIT ..."
165 read vtInputKey
166 unset pager
167 }
168
169 menuentry "$VTLANG_JSON_CHK_MENU_TIP" --class=debug_menutip --class=debug_json --class=F5tool {
170 set pager=1
171 vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
172
173 echo -en "\n$VTLANG_ENTER_EXIT ..."
174 read vtInputKey
175 unset pager
176 }
177
178 menuentry "$VTLANG_JSON_CHK_MENU_CLASS" --class=debug_menuclass --class=debug_json --class=F5tool {
179 set pager=1
180 vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
181
182 echo -en "\n$VTLANG_ENTER_EXIT ..."
183 read vtInputKey
184 unset pager
185 }
186
187 menuentry "$VTLANG_JSON_CHK_INJECTION" --class=debug_injection --class=debug_json --class=F5tool {
188 set pager=1
189 vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
190
191 echo -en "\n$VTLANG_ENTER_EXIT ..."
192 read vtInputKey
193 unset pager
194 }
195
196 menuentry "$VTLANG_JSON_CHK_AUTO_MEMDISK" --class=debug_automemdisk --class=debug_json --class=F5tool {
197 set pager=1
198 vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
199
200 echo -en "\n$VTLANG_ENTER_EXIT ..."
201 read vtInputKey
202 unset pager
203 }
204
205 menuentry "$VTLANG_JSON_CHK_IMG_LIST" --class=debug_imagelist --class=debug_json --class=F5tool {
206 set pager=1
207 vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
208
209 echo -en "\n$VTLANG_ENTER_EXIT ..."
210 read vtInputKey
211 unset pager
212 }
213
214 menuentry "$VTLANG_JSON_CHK_IMG_BLIST" --class=debug_imageblacklist --class=debug_json --class=F5tool {
215 set pager=1
216 vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
217
218 echo -en "\n$VTLANG_ENTER_EXIT ..."
219 read vtInputKey
220 unset pager
221 }
222
223 menuentry "$VTLANG_JSON_CHK_CONF_REPLACE" --class=debug_bootconf_replace --class=debug_json --class=F5tool {
224 set pager=1
225 vt_check_plugin_json $vt_plugin_path conf_replace $vtoy_iso_part
226
227 echo -en "\n$VTLANG_ENTER_EXIT ..."
228 read vtInputKey
229 unset pager
230 }
231
232 menuentry "$VTLANG_JSON_CHK_DUD" --class=debug_dud --class=debug_json --class=F5tool {
233 set pager=1
234 vt_check_plugin_json $vt_plugin_path dud $vtoy_iso_part
235
236 echo -en "\n$VTLANG_ENTER_EXIT ..."
237 read vtInputKey
238 unset pager
239 }
240
241 menuentry "$VTLANG_JSON_CHK_PASSWORD" --class=debug_pwd --class=debug_json --class=F5tool {
242 set pager=1
243 vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
244
245 echo -en "\n$VTLANG_ENTER_EXIT ..."
246 read vtInputKey
247 unset pager
248 }
249
250 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
251 echo "Return ..."
252 }
253 }
254
255
256 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
257 echo "Return ..."
258 }