Kernel upgrade 4.12.14-lp150.12.28-default takes default values from /etc/default/grub ?

Hello

After upgrading to newest kernel on leap 15 (4.12.14-lp150.12.28-default) my system did not boot anymore.
The problem was that on old swap partition was deleted from disk sda,
The old value was still in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=“resume=/dev/disk/by-uuid/76739b26-064e-49ba-9495-11b5b981e0b6 splash=silent quiet showopts”

But I have already done a lot of upgrades which went right with new swap partition, so I really don’t know why this update
took values from /etc/default/grub instead from /boot/grub2/grub.cfg

I think grub2 should check if the partition in GRUB_CMDLINE_LINUX_DEFAULT is a valid swap partition or by installing each kernel stanza and print at least a warning if it does not exist…

Greetings

It is really “grub2-mkconfig” that looks at “/etc/default/grub”.

You can also use Yast bootloader to change the “resume=” options on the kernel command line.

When you change the swap partition, you need to change it in “/etc/fstab” and in “/etc/default/grub” (or Yast bootloader).

And note that any kernel upgrade with regenerate your grub boot menu.