Change to grub2

After update my tumbleweed system to the 12.2 repositories and a “zypper dup” all works fine. Then i’ve changed to grub2:


     
vi /boot/grub/menu.lst
  old:  kernel (hd0,0)/grub2/core.img .....
  new:  kernel (hd0,0)/grub2/i386-pc/core.img .....

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda


Works fine. But with every kernel update (with zypper up) i have to redo the grub2-mkconfig command. Is there a possibility that zypper does it automatically?

Stephan

Zypper calls bootloader utils which refresh current bootloader configuration. Where “current” is whatever is defined in /etc/sysconfig/bootloader. You need to switch to grub2 via YaST2.

i’ve changed to grub2

You did not change to grub2. You remained with grub as primary bootloader, and grub2 is simply one of bootloader options.

Thanks. Switch to grub2 via YaST2 works, but the theme has lost. Adding the following lines in /etc/default/grub has solved the problem.


GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt