[Bug 1962314] Re: grub 2 custom.cfg colors not all used in Advanced options
Mate Kukri
1962314 at bugs.launchpad.net
Thu Jun 27 07:51:34 UTC 2024
I think this is something that should be reported and changed upstream:
https://savannah.gnu.org/bugs/?group=grub
** Changed in: grub2 (Ubuntu)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1962314
Title:
grub 2 custom.cfg colors not all used in Advanced options
Status in grub2 package in Ubuntu:
Won't Fix
Bug description:
1) Ubuntu MATE 21.10
2) grub 2.04-1ubuntu47
3) I use text-mode for Grub, so made the following changes in /etc/default/grub:
GRUB_TIMEOUT_STYLE=timeout
GRUB_TERMINAL=console
I then created a /boot/grub/custom.cfg with the following entries:
color_normal="light-gray/blue"
color_highlight="white/blue"
menu_color_normal="light-gray/blue"
menu_color_highlight="yellow/magenta"
I expect these colors to be used on both the initial menu showing the
OS version, Advanced options, and two Memory test options; and also on
the Advanced options submenu showing the list of available kernels.
4) What I'm seeing is that these colors are accurately reflected on
the initial text menu. However, if I select Advanced Options to show
the list of kernels, then the first three color specs are shown
properly. But the last one, for the highlighted menu entry is not
respected. Instead, the color_highlight combination of white/blue is
used instead.
After some searching, I found a suggestion to manually update the
/boot/grub/grub.cfg file to add the menu_color options to the Advanced
options submenu, like so:
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-
advanced-43548515-6ad7-4cdb-b295-f880ef847d12' {
menu_color_normal="light-gray/blue"
menu_color_highlight="yellow/magenta"
menuentry 'Ubuntu, with Linux 5.13.0-30-generic' ...
This does indeed produce the desired result, in that the highlighted
menu item now has the desired colors. But of course these changes
will be lost the next time a new kernel is installed.
Since the submenu inherits color_normal and color_hightlight from the
top level menu, would be great if the menu_color_normal and
menu_color_highlight were also inherited. I don't believe the submenu
can be modified via custom.cfg, since custom.cfg is simply sourced
from grub.cfg at the very end, after all the menu and submenu entries
have been created.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1962314/+subscriptions
More information about the foundations-bugs
mailing list