change boot menu entry titles?

openSuse TW
Does anyone know how to change the boot menu titles?
I want to include the kernel version in the title for each entry and remove the openSuse text
TIA

You tried YaST > System > Boot Loader?

I did, but I didnt see anything there to let me change the menu titles -what am i missing/

Those texts are of course in /boot/grub2/grub.cfg, but this is a generated file, thus I assume you must find something higher up in the hierarchy.

I just change the wording in the system file:

/boot/grub2/grub.cfg

as root using kate. The only problem with this method is that a kernel update or some other system file updates will just re-set it back.

After digging around a bit it looks like its in /etc/grub.d/10_linux
I haven’t tested it but it seems like around line 30 or so

     29 CLASS="--class gnu-linux --class gnu --class os"
     30 
     31 if  "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
     32   OS=GNU/Linux
     33 else
     34   OS="${GRUB_DISTRIBUTOR}"
     35   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,^:alnum:]_],_,g') ${CLASS}"
     36 fi

I think you can change

OS="${GRUB_DISTRIBUTOR}"

to

OS="My Title"

and then run

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

But as i said, i haven’t tested it yet, so i could be totally wrong. I will test it i a day or so and post back

Actually instead of changing OS, just set GRUB_DISTRIBUTOR

if  "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  OS=GNU/Linux
else
  GRUB_DISTRIBUTOR="Your Title Here"                                                                                                                                                                                         
  OS="${GRUB_DISTRIBUTOR}"
  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,^:alnum:]_],_,g') ${CLASS}"