Mailinglist Archive: opensuse-support (80 mails)

< Previous Next >
Re: [opensuse-support] give TW Grub-EFI menu blue background instead of black?
06.10.2018 09:35, Felix Miata пишет:
Andrei Borzenkov composed on 2018-10-06 08:14 (UTC+0300):

Felix Miata composed:

This is what I had:
http://fm.no-ip.com/SS/Suse/gmenu-TWsmall.jpg (menu uses <1/2 the screen)
when I filed
https://bugzilla.opensuse.org/show_bug.cgi?id=1101747

This is what I have now, which eventually resulted from removing grub*
packages
and config files, then reinstalling:
http://fm.no-ip.com/SS/Suse/gmenu-TWbig.jpg (menu uses most of screen)

This is what I'm trying to achieve (blue background, like Debian produces):
http://fm.no-ip.com/SS/Suse/gmenu-Deb.jpg

I tried YaST2, but it doesn't seem to have any way to affect menu colors (or
font size or overall menu size).
<https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.grub2.html>
didn't help.

Debian has a file /etc/grub.d/05_debian_theme which undoubtedly accounts
for its
boot menu colors. I tried including it in my TW /etc/grub.d/, but it didn't
have
any desired effect, likely at least in part because of its many references
to
*grub/* where openSUSE has *grub2/*.

You expect us to hunt for this file to understand what you did?
...

appended/attached(?) the one from Butch
Quite different:
https://raw.githubusercontent.com/huslage/qfi-box-config/master/etc/grub.d/05_debian_theme

I didn't save any changes I tried.

Anyone know how to make my openSUSE TW Grub menu colors match Debian's, or
where
docs are that might explain?

As you are using text mode console, I'd say color_normal,
color_highlight, menu_color_normal, menu_color_highlight environment
variables may help. They are described in "info grub2".

Named, yes. Description of how and where to use (aka examples), not found
(normal for info files and man pages). Based on
<https://unix.stackexchange.com/questions/381188/how-to-set-solid-background-color-in-grub>
I tried appending
GRUB_COLOR_BACKGROUND="blue"
GRUB_COLOR_HIGHLIGHT="white/blue"
GRUB_COLOR_NORMAL="light-blue/blue"
to /etc/default/grub (attached?) and rebuilding /etc/grub2/grub.cfg, but it
had
no detectable effect on the Grub menu next boot.

Based on the Debian theme, I also tried creating /etc/grub.d/05_theme:
set_default_theme(){
echo "${1}set menu_color_normal=cyan/blue"
echo "${1}set menu_color_highlight=white/blue"
}
It too had no detectable effect on the Grub menu next boot.


Well, I have no idea what this two-page script is supposed to do. Adding

set menu_color_normal=light-gray/blue
set menu_color_highlight=white/blue

to custom.cfg certainly works on Leap 42.3 VM.

What I, and probably many others, would like is something that provides
examples
like info and man pages almost never have. Setting menu colors to something
other than black on white shouldn't require a course in theme programming. I'm
not a programmer.

Bonus question: What controls overall Grub menu size, whether it uses only a
small portion of the center of the screen instead of most of it? I looked in
/etc/grub.d/, /etc/default/grub and /boot/grub2/grub.cfg without spotting
anything that looked like any kind of size control.

Text mode takes whatever console size is exposed by BIOS.

Something other than UEFI BIOS/UEFI BIOS font size must be controlling whether
Grub's menu is using the whole screen or not, no?


Console size is always 80x25. Whether it takes up full screen or its
part is entirely up to BIOS (and possible video card BIOS/screen. I
suppose LCD cannot be stretched).
--
To unsubscribe, e-mail: opensuse-support+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-support+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups