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