12.2 - New install - Grub2 text not readable

Hello.

After choosing and pressing enter, the text is not readable in the grub2 screen : text light grey and background is light green.

Is there anything I can do ?

It can be fixed the first time you use updategrub from my repo, if you happen to use this script. Otherwise, copy/paste this script, save it in /etc/grub.d as “05_menu_color” and make it executable:

#!/bin/sh -e
set -e

prefix=/usr
exec_prefix=/usr

. /usr/share/grub2/grub-mkconfig_lib

COLOR_NORMAL="black/black"
COLOR_HIGHLIGHT="white/black"

if  "${GRUB_TERMINAL_OUTPUT}" = "gfxterm" ] ; then
        cat <<EOF
set color_normal=${COLOR_NORMAL}
set color_highlight=${COLOR_HIGHLIGHT}
EOF
else
  cat << EOF
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
EOF
fi

This is a great suggestion please_try_again as I have loaded it in all of my PC’s. Don’t forget to run the Grub 2 menu update command so your changes will take effect with the new script:

sudo /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg

You can get more help with Grub 2 if you look here at my bash script: GNU Grub2 Command Help/Config Editor - Version: 1.85 - Blogs - openSUSE Forums

Thank You,

hello.

No change.

here is copy/paste screen log of /usr/sbin/grub2-mkconfig /boot/grub2/grub.cfg SUSE Paste

here file 05_menu_color SUSE Paste

Do you use UEFI boot by any chance?

You didn’t rewrite the menu with this command. You just printed it to standard output. You should use this command to actually write grub.cfg:

sudo /usr/sbin/grub2-mkconfig **-o** /boot/grub2/grub.cfg

Or - if you install updategrub from my repo - simply:

# updategrub

Once you rewrite the menu, it should work, because the output you posted is correct:

### BEGIN /etc/grub.d/05_menu_color ###
set color_normal=black/black
set color_highlight=white/black
### END /etc/grub.d/05_menu_color ###

On Fri 09 Nov 2012 01:46:02 PM CST, please try again wrote:

/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg

BEGIN /etc/grub.d/05_menu_color

set color_normal=black/black
set color_highlight=white/black

END /etc/grub.d/05_menu_color

Hi
Just tried the change here and the menu text colors were not
changed…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 0:01, 3 users, load average: 0.49, 0.24, 0.09
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

How would I know that?

No change.

linux-srv:~ # /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found background: /boot/grub2/themes/openSUSE/background.png
Found linux image: /boot/vmlinuz-3.4.11-2.16-desktop
Found initrd image: /boot/initrd-3.4.11-2.16-desktop
  /dev/sde: open failed: No medium found
  /dev/sdf: open failed: No medium found
  /dev/sdg: open failed: No medium found
  /dev/sdh: open failed: No medium found
  No volume groups found
done
linux-srv:~ # 


Hi
Ahh sorted I’m using UEFI, so for me it’s;


/usr/sbin/grub2-mkconfig -o /boot/grub2-efi/grub.cfg

An now the text color is black in the boot menu, isn’t it?

No change

linux:~ # updategrub
- patching /etc/default/grub ...
Generating grub.cfg ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found background: /boot/grub2/themes/openSUSE/background.png
Found linux image: /boot/vmlinuz-3.4.11-2.16-desktop
Found initrd image: /boot/initrd-3.4.11-2.16-desktop
  /dev/sde: open failed: No medium found
  /dev/sdf: open failed: No medium found
  /dev/sdg: open failed: No medium found
  /dev/sdh: open failed: No medium found
  No volume groups found
done
linux:~ #

BTW how could I know if I am using UEFI ?
But I guess I am not using one :

linux-srv:~ # /usr/sbin/grub2-mkconfig -o /boot/grub2-efi/grub.cfg
/usr/sbin/grub2-mkconfig: line 229: /boot/grub2-efi/grub.cfg.new: No such file or directory
linux-srv:~ # 

On Fri 09 Nov 2012 03:16:01 PM CST, please try again wrote:

malcolmlewis;2502552 Wrote:
> Hi
> Ahh sorted I’m using UEFI, so for me it’s;
> >
Code:

> >
> /usr/sbin/grub2-mkconfig -o /boot/grub2-efi/grub.cfg
>

> >

An now the text color is black in the boot menu, isn’t it?

Hi
Yes it is :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 1:07, 3 users, load average: 0.07, 0.04, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Next openSUSE version will put an end to this mess with two different grub.cfg locations.

You don’t.
But I don’t know why 05_menu_color is not working for you. It works here and for other people too AFAIK.

What’s the output of this command now:

# grep -A 2 05_menu_color /boot/grub2/grub.cfg
linux:~ # grep -A 2 05_menu_color /boot/grub2/grub.cfg
### BEGIN /etc/grub.d/05_menu_color ###
set color_normal=black/black
set color_highlight=white/black
### END /etc/grub.d/05_menu_color ###

### BEGIN /etc/grub.d/10_linux ###
linux:~ # 

As I remember, unless you elect to use the <e>dit command, you don’t see any difference.

Thank You,

I don’t think so. See the picture in this thread; http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/unreviewed-how-faq/479866-icons-other-distros-boot-menu.html#post2498513

Hello.

  • Have reinstall for other reasons.
  • Have created 05_menu_color.
  • Have run updategrub

No change.

Any way it is not so important.

Thank you for taking time to help me.

Maybe that’s the problem. You didn’t need to do both, at least not for the purpose of creating 05_menu_color. If this file doesn’t exist, updategrub will create it. But if it does already exist, it is not going to check if it is executable. Thus, if you created the script but didn’t make it executable, it won’t be executed.

Howver, the output you posted earlier clearly shows that 05_menu_color is sourced:

I don’t know why it doesn’t work in this case.