Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
9ddee739
Commit
9ddee739
authored
Oct 21, 2020
by
longpanda
Browse files
support different themes for Legacy BIOS mode and UEFI mode
parent
c9b316a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
+5
-0
INSTALL/grub/debug.cfg
INSTALL/grub/debug.cfg
+21
-0
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
View file @
9ddee739
...
@@ -1180,6 +1180,11 @@ static plugin_entry g_plugin_entries[] =
...
@@ -1180,6 +1180,11 @@ static plugin_entry g_plugin_entries[] =
{
{
{
"control"
,
ventoy_plugin_control_entry
,
ventoy_plugin_control_check
},
{
"control"
,
ventoy_plugin_control_entry
,
ventoy_plugin_control_check
},
{
"theme"
,
ventoy_plugin_theme_entry
,
ventoy_plugin_theme_check
},
{
"theme"
,
ventoy_plugin_theme_entry
,
ventoy_plugin_theme_check
},
#ifdef GRUB_MACHINE_EFI
{
"theme_uefi"
,
ventoy_plugin_theme_entry
,
ventoy_plugin_theme_check
},
#else
{
"theme_legacy"
,
ventoy_plugin_theme_entry
,
ventoy_plugin_theme_check
},
#endif
{
"auto_install"
,
ventoy_plugin_auto_install_entry
,
ventoy_plugin_auto_install_check
},
{
"auto_install"
,
ventoy_plugin_auto_install_entry
,
ventoy_plugin_auto_install_check
},
{
"persistence"
,
ventoy_plugin_persistence_entry
,
ventoy_plugin_persistence_check
},
{
"persistence"
,
ventoy_plugin_persistence_entry
,
ventoy_plugin_persistence_check
},
{
"menu_alias"
,
ventoy_plugin_menualias_entry
,
ventoy_plugin_menualias_check
},
{
"menu_alias"
,
ventoy_plugin_menualias_entry
,
ventoy_plugin_menualias_check
},
...
...
INSTALL/grub/debug.cfg
View file @
9ddee739
...
@@ -19,6 +19,27 @@ submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json {
...
@@ -19,6 +19,27 @@ submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json {
unset pager
unset pager
}
}
if [ "$grub_platform" = "pc" ]; then
menuentry 'Check legacy theme plugin configuration' --class=debug_theme_legacy {
set pager=1
vt_check_plugin_json $vt_plugin_path theme_legacy $vtoy_iso_part
echo -e "\npress ENTER to exit ..."
read vtInputKey
unset pager
}
else
menuentry 'Check uefi theme plugin configuration' --class=debug_theme_uefi {
set pager=1
vt_check_plugin_json $vt_plugin_path theme_uefi $vtoy_iso_part
echo -e "\npress ENTER to exit ..."
read vtInputKey
unset pager
}
fi
menuentry 'Check auto install plugin configuration' --class=debug_autoinstall {
menuentry 'Check auto install plugin configuration' --class=debug_autoinstall {
set pager=1
set pager=1
vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment