]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/debug.cfg
Correct some spelling and grammar in BuildVentoyFromSource.txt (#2491)
[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_LINUX_REMOUNT ] $VTLANG_LINUX_REMOUNT" --class=debug_temp_linux_remount --class=debug_temp_set --class=F5tool \
25 VTOY_RUN_SET2 {
26 if [ "$VTOY_LINUX_REMOUNT" = "0" ]; then
27 set VTOY_LINUX_REMOUNT=1
28 else
29 set VTOY_LINUX_REMOUNT=0
30 fi
31 }
32
33 menuentry "[ $VTOY_SECONDARY_BOOT_MENU ] $VTLANG_SECONDARY_BOOT_MENU" --class=debug_temp_second_menu --class=debug_temp_set --class=F5tool \
34 VTOY_RUN_SET3 {
35 if [ "$VTOY_SECONDARY_BOOT_MENU" = "0" ]; then
36 set VTOY_SECONDARY_BOOT_MENU=1
37 else
38 set VTOY_SECONDARY_BOOT_MENU=0
39 fi
40 }
41
42 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
43 echo "Return ..."
44 }
45 }
46
47
48 submenu "$VTLANG_MENU_LANG" --class=debug_menu_lang --class=F5tool {
49 source $prefix/menulang.cfg
50 }
51
52 source $prefix/power.cfg
53 source $prefix/hwinfo.cfg
54 source $prefix/keyboard.cfg
55
56 submenu "$VTLANG_RESOLUTION_CFG" --class=debug_resolution --class=F5tool {
57 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
58 echo "Return ..."
59 }
60
61 vt_update_cur_video_mode VT_CUR_MODE
62 set vdid=0
63 while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
64 vt_get_video_mode $vdid vtCurMode
65
66 unset vtActive
67 if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
68 set vtActive="[*]"
69 fi
70
71 menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
72 terminal_output console
73 set gfxmode=$1
74 terminal_output gfxterm
75 if [ "$vtoy_res_fit" = "1" ]; then
76 vt_set_theme switch
77 fi
78 }
79
80 vt_incr vdid 1
81 done
82 }
83
84 submenu "$VTLANG_SCREEN_MODE" --class=debug_screen_mode --class=F5tool {
85 menuentry "$VTLANG_SCREEN_TEXT_MODE" --class=debug_text_mode --class=debug_screen_mode --class=F5tool {
86 vt_push_menu_lang en_US
87 terminal_output console
88 }
89 menuentry "$VTLANG_SCREEN_GUI_MODE" --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
90 terminal_output gfxterm
91 vt_pop_menu_lang
92 }
93 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
94 echo "Return ..."
95 }
96 }
97
98 if [ -n "$VTOY_THEME_COUNT" -a $VTOY_THEME_COUNT -gt 1 ]; then
99 submenu "$VTLANG_THEME_SELECT" --class=debug_theme_select --class=F5tool {
100 vt_select_theme_cfg
101 }
102 fi
103
104 if [ "$grub_platform" != "pc" ]; then
105 submenu "$VTLANG_UEFI_UTIL" --class=debug_util --class=F5tool {
106 menuentry "$VTLANG_UTIL_SHOW_EFI_DRV" --class=debug_util_efidrv --class=debug_util --class=F5tool {
107 vt_push_pager
108 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=show_efi_drivers
109 boot
110 vt_pop_pager
111 echo -en "\n$VTLANG_ENTER_EXIT ..."
112 read vtInputKey
113 }
114
115 menuentry "$VTLANG_UTIL_FIX_BLINIT_FAIL" --class=debug_util_blinit --class=debug_util --class=F5tool {
116 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
117 boot
118 echo -en "\n$VTLANG_ENTER_EXIT ..."
119 read vtInputKey
120 }
121
122 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
123 echo "Return ..."
124 }
125 }
126 fi
127
128
129 submenu "$VTLANG_JSON_CHK_JSON" --class=debug_json --class=F5tool {
130 menuentry "$VTLANG_JSON_CHK_CONTROL" --class=debug_control --class=debug_json --class=F5tool {
131 set pager=1
132 vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
133
134 echo -en "\n$VTLANG_ENTER_EXIT ..."
135 read vtInputKey
136 unset pager
137 }
138
139 menuentry "$VTLANG_JSON_CHK_THEME" --class=debug_theme --class=debug_json --class=F5tool {
140 set pager=1
141 vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
142
143 echo -en "\n$VTLANG_ENTER_EXIT ..."
144 read vtInputKey
145 unset pager
146 }
147
148 menuentry "$VTLANG_JSON_CHK_AUTOINS" --class=debug_autoinstall --class=debug_json --class=F5tool {
149 set pager=1
150 vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
151
152 echo -en "\n$VTLANG_ENTER_EXIT ..."
153 read vtInputKey
154 unset pager
155 }
156
157 menuentry "$VTLANG_JSON_CHK_PERSIST" --class=debug_persistence --class=debug_json --class=F5tool {
158 set pager=1
159 vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
160
161 echo -e "\n############### dump persistence ###############"
162 vt_dump_persistence
163
164 echo -en "\n$VTLANG_ENTER_EXIT ..."
165 read vtInputKey
166 unset pager
167 }
168
169 menuentry "$VTLANG_JSON_CHK_MENU_ALIAS" --class=debug_menualias --class=debug_json --class=F5tool {
170 set pager=1
171 vt_check_plugin_json $vt_plugin_path menu_alias $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_TIP" --class=debug_menutip --class=debug_json --class=F5tool {
179 set pager=1
180 vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
181
182 echo -en "\n$VTLANG_ENTER_EXIT ..."
183 read vtInputKey
184 unset pager
185 }
186
187 menuentry "$VTLANG_JSON_CHK_MENU_CLASS" --class=debug_menuclass --class=debug_json --class=F5tool {
188 set pager=1
189 vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
190
191 echo -en "\n$VTLANG_ENTER_EXIT ..."
192 read vtInputKey
193 unset pager
194 }
195
196 menuentry "$VTLANG_JSON_CHK_INJECTION" --class=debug_injection --class=debug_json --class=F5tool {
197 set pager=1
198 vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
199
200 echo -en "\n$VTLANG_ENTER_EXIT ..."
201 read vtInputKey
202 unset pager
203 }
204
205 menuentry "$VTLANG_JSON_CHK_AUTO_MEMDISK" --class=debug_automemdisk --class=debug_json --class=F5tool {
206 set pager=1
207 vt_check_plugin_json $vt_plugin_path auto_memdisk $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_LIST" --class=debug_imagelist --class=debug_json --class=F5tool {
215 set pager=1
216 vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
217
218 echo -en "\n$VTLANG_ENTER_EXIT ..."
219 read vtInputKey
220 unset pager
221 }
222
223 menuentry "$VTLANG_JSON_CHK_IMG_BLIST" --class=debug_imageblacklist --class=debug_json --class=F5tool {
224 set pager=1
225 vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
226
227 echo -en "\n$VTLANG_ENTER_EXIT ..."
228 read vtInputKey
229 unset pager
230 }
231
232 menuentry "$VTLANG_JSON_CHK_CONF_REPLACE" --class=debug_bootconf_replace --class=debug_json --class=F5tool {
233 set pager=1
234 vt_check_plugin_json $vt_plugin_path conf_replace $vtoy_iso_part
235
236 echo -en "\n$VTLANG_ENTER_EXIT ..."
237 read vtInputKey
238 unset pager
239 }
240
241 menuentry "$VTLANG_JSON_CHK_DUD" --class=debug_dud --class=debug_json --class=F5tool {
242 set pager=1
243 vt_check_plugin_json $vt_plugin_path dud $vtoy_iso_part
244
245 echo -en "\n$VTLANG_ENTER_EXIT ..."
246 read vtInputKey
247 unset pager
248 }
249
250 menuentry "$VTLANG_JSON_CHK_PASSWORD" --class=debug_pwd --class=debug_json --class=F5tool {
251 set pager=1
252 vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
253
254 echo -en "\n$VTLANG_ENTER_EXIT ..."
255 read vtInputKey
256 unset pager
257 }
258
259 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
260 echo "Return ..."
261 }
262 }
263
264
265 menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
266 echo "Return ..."
267 }