I have updated opensuse from 13.1 to 13.2 to 42.1 to 42.2 but the boot menu in grub still says “opensuse 13.1” although it boots fine.
I would like to change this menu, but the only place in wich I find it is in /boot/grub2/grub.cfg but it says “do not edit this file”
I have tried
grub2-mkconfig -o /tmp/grub.cfg
but the generated file still says “Opensuse 13.1”
Yast does not let me change anything
Where can I change it?
Edit the GRUB_DISTRIBUTOR= line in /etc/default/grub with a text editor and run “grub2-mkconfig -o /boot/grub2/grub.cfg” afterwards to regenerate the boot menu.
If you set it to empty, the actual version will be taken from the installation and you’ll never have to change it again. (although, you can of course set anything you like, it has absolutely no effect on booting and is just “cosmetical”)
But as I understand it, that should actually be done when upgrading to 42.2 (it was the case here on 2 systems I upgraded from 13.2).
No idea at the moment why it didn’t work for you…
If I remember correctly (don’t count on that!), that problem happened to several upgrading from 12.x (??) to 13.1 (???).
All I know for certain is that it was on the forums a lot quite some time back. Maybe the OP applied the edit fix back then and does not recall? Or, maybe 13.1 has that problem?
I have moved from 13.1 to 42.2 without that problem, but I did not upgrade, did fresh install, which of course would not be affected.
Yes, you are right.
That problem actually existed since the switch to grub2 (in 12.2 IIRC).
/etc/default/grub is considered as a config file, and so is not touched on upgrades as the user/admin may have changed it on purpose.
But according to my knowledge, because of the bug reports about the boot menu still saying “openSUSE 13.1” e.g. after upgrades, an update script has been added meanwhile (in Leap 42.2 I think) that changes this particular line (if it was openSUSE xxx something).
I’m currently not sure where exactly, but it has worked here at least.
I think I did a fresh install of 13.1 but I am not sure, then I did a live install (from command line) from 13.1 to 13.2, then to 42.1 then to 42.2
The solution wolfi suggested worked fine.