]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/debug.cfg
Fix the issue when set F2> as the default menu item.
[Ventoy.git] / INSTALL / grub / debug.cfg
1
2 source $prefix/power.cfg
3 source $prefix/keyboard.cfg
4
5 submenu "Resolution Configuration" --class=debug_resolution --class=F5tool {
6 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
7 echo 'Return ...'
8 }
9
10 vt_update_cur_video_mode VT_CUR_MODE
11 set vdid=0
12 while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
13 vt_get_video_mode $vdid vtCurMode
14
15 unset vtActive
16 if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
17 set vtActive="[*]"
18 fi
19
20 menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
21 terminal_output console
22 set gfxmode=$1
23 terminal_output gfxterm
24 }
25
26 vt_incr vdid 1
27 done
28 }
29
30 submenu "Screen Display Mode" --class=debug_screen_mode --class=F5tool {
31 menuentry 'Force Text Mode' --class=debug_text_mode --class=debug_screen_mode --class=F5tool {
32 terminal_output console
33 }
34 menuentry 'Force Graphics Mode' --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
35 terminal_output gfxterm
36 }
37 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
38 echo 'Return ...'
39 }
40 }
41
42 if [ $VTOY_THEME_COUNT -gt 1 ]; then
43 submenu "Theme Select" --class=debug_theme_select --class=F5tool {
44 vt_select_theme_cfg
45 }
46 fi
47
48 if [ "$grub_platform" != "pc" ]; then
49 submenu 'Ventoy UEFI Utilities' --class=debug_util --class=F5tool {
50 menuentry 'Show EFI Drivers' --class=debug_util_efidrv --class=debug_util --class=F5tool {
51 vt_push_pager
52 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=show_efi_drivers
53 boot
54 vt_pop_pager
55 echo -e "\npress ENTER to exit ..."
56 read vtInputKey
57 }
58
59 menuentry 'Fixup Windows BlinitializeLibrary Failure' --class=debug_util_blinit --class=debug_util --class=F5tool {
60 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
61 boot
62 echo -e "\npress ENTER to exit ..."
63 read vtInputKey
64 }
65
66 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
67 echo 'Return ...'
68 }
69 }
70 fi
71
72
73 submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json --class=F5tool {
74 menuentry 'Check global control plugin configuration' --class=debug_control --class=debug_json --class=F5tool {
75 set pager=1
76 vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
77
78 echo -e "\npress ENTER to exit ..."
79 read vtInputKey
80 unset pager
81 }
82
83 menuentry 'Check theme plugin configuration' --class=debug_theme --class=debug_json --class=F5tool {
84 set pager=1
85 vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
86
87 echo -e "\npress ENTER to exit ..."
88 read vtInputKey
89 unset pager
90 }
91
92 menuentry 'Check auto install plugin configuration' --class=debug_autoinstall --class=debug_json --class=F5tool {
93 set pager=1
94 vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
95
96 echo -e "\npress ENTER to exit ..."
97 read vtInputKey
98 unset pager
99 }
100
101 menuentry 'Check persistence plugin configuration' --class=debug_persistence --class=debug_json --class=F5tool {
102 set pager=1
103 vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
104
105 echo -e "\n############### dump persistence ###############"
106 vt_dump_persistence
107
108 echo -e "\npress ENTER to exit ..."
109 read vtInputKey
110 unset pager
111 }
112
113 menuentry 'Check menu alias plugin configuration' --class=debug_menualias --class=debug_json --class=F5tool {
114 set pager=1
115 vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
116
117 echo -e "\npress ENTER to exit ..."
118 read vtInputKey
119 unset pager
120 }
121
122 menuentry 'Check menu tip plugin configuration' --class=debug_menutip --class=debug_json --class=F5tool {
123 set pager=1
124 vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
125
126 echo -e "\npress ENTER to exit ..."
127 read vtInputKey
128 unset pager
129 }
130
131 menuentry 'Check menu class plugin configuration' --class=debug_menuclass --class=debug_json --class=F5tool {
132 set pager=1
133 vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
134
135 echo -e "\npress ENTER to exit ..."
136 read vtInputKey
137 unset pager
138 }
139
140 menuentry 'Check injection plugin configuration' --class=debug_injection --class=debug_json --class=F5tool {
141 set pager=1
142 vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
143
144 echo -e "\npress ENTER to exit ..."
145 read vtInputKey
146 unset pager
147 }
148
149 menuentry 'Check auto memdisk plugin configuration' --class=debug_automemdisk --class=debug_json --class=F5tool {
150 set pager=1
151 vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
152
153 echo -e "\npress ENTER to exit ..."
154 read vtInputKey
155 unset pager
156 }
157
158 menuentry 'Check image list plugin configuration' --class=debug_imagelist --class=debug_json --class=F5tool {
159 set pager=1
160 vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
161
162 echo -e "\npress ENTER to exit ..."
163 read vtInputKey
164 unset pager
165 }
166
167 menuentry 'Check image blacklist plugin configuration' --class=debug_imageblacklist --class=debug_json --class=F5tool {
168 set pager=1
169 vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
170
171 echo -e "\npress ENTER to exit ..."
172 read vtInputKey
173 unset pager
174 }
175
176 menuentry 'Check boot conf replace plugin configuration' --class=debug_bootconf_replace --class=debug_json --class=F5tool {
177 set pager=1
178 vt_check_plugin_json $vt_plugin_path conf_replace $vtoy_iso_part
179
180 echo -e "\npress ENTER to exit ..."
181 read vtInputKey
182 unset pager
183 }
184
185 menuentry 'Check dud plugin configuration' --class=debug_dud --class=debug_json --class=F5tool {
186 set pager=1
187 vt_check_plugin_json $vt_plugin_path dud $vtoy_iso_part
188
189 echo -e "\npress ENTER to exit ..."
190 read vtInputKey
191 unset pager
192 }
193
194 menuentry 'Check password plugin configuration' --class=debug_pwd --class=debug_json --class=F5tool {
195 set pager=1
196 vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
197
198 echo -e "\npress ENTER to exit ..."
199 read vtInputKey
200 unset pager
201 }
202
203 menuentry 'Check custom boot plugin configuration' --class=debug_custom_boot --class=debug_json --class=F5tool {
204 set pager=1
205 vt_check_plugin_json $vt_plugin_path custom_boot $vtoy_iso_part
206
207 echo -e "\npress ENTER to exit ..."
208 read vtInputKey
209 unset pager
210 }
211
212 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
213 echo 'Return ...'
214 }
215 }
216
217
218 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
219 echo 'Return ...'
220 }