How to fix GRUB2 wrong title after upgrade

I have completed the upgrade of my box from 13.1 to 13.2. However, I faced some minor issues and one of them is the title of my system in the grub menu, which is not openSUSE or 13.2 but 13.1!

The “Problem” is that sometime in the past I changed the grub menu and after that, all new installations/updates simply put an .rpmnew file.
So, the solution to the problem is to remove the _13.1 from the title:

cp /boot/grub2/grub.cfg ~/root # just a backup, you never know
sed -i 's/13.1/13.2/g' /etc/default/grub
grub2-mkconfig > /boot/grub2/grub.cfg

Note: Yes, the sed is not technically right, but it works.

Yes, that would work.

Editing “/etc/default/grub” is the correct solution. It is considered a local configuration file, so not changed in the upgraded. You just locally configured it.

Recommend you submit your fix to the openSUSE bugzilla.
AFAIK 13.2 is the first distro released that didn’t modify grub correctly even in an upgrade.


I’m pretty sure the problem was in 13.1 also it depends on the upgrade method the online method seems to be the one that does not work if you do a DVD upgrade I think it works.

It does not at all depend on the upgrade method, and the problem was already in 12.2 when grub2 was introduced (of course there was no upgrade yet back then, so the first time you saw it was when upgrading to 12.3).

@tsu2: a more general script has been suggested in bugzilla already (even twice I think), but this hasn’t been added to the package for whatever reasons.
13.2 sets “openSUSE” by default anyway, so that problem will not exist when you upgrade a fresh 13.2 installation to 13.3 or Tumbleweed.

Just a FYI -
Based on this code, created a downloadable script(already executable), slightly modified from the original

You can find the link to that script along with a number of other scripts and other resources on my wiki page

  • I modified the backup grub.cfg file to be stored in the same directory as the original (/boot/grub2/). My preference not to scatter backups to other locations I might not remember.
  • Although this is a very short and simple script, is fully documented for the newbie.


Yes, it was.

But, now, I do not remember if the same problem happened upgrading from 12.1 to 12.3, maybe yes, maybe no.

Probably not, as 12.1 did not install grub2 by default yet. :wink: