Grub2 and paths to vmlinuz and initrd

I used Clonezilla to clone my laptop’s disk, but the machined failed to boot from the cloned disk, with grub2 dropping into command line. I found a helpful post on stackexchange and was able to boot into Linux and update grub2 so that the laptop now boots OK. My question is about the commands that I copied to get the initial boot. In the post on stackexchange the absolute path to vmlinuz and initrd (full name including version number) were used and I followed that. Is that correct, or should I have used the paths to the symbolic links? The grub.cfg file has the absolute paths. Will this be automatically changed when there is a kernel upgrade? If I should not have used the absolute paths, how can I correct this?

As far as I know, it is fairly common that you need to reinstall grub on the clone after using Clonezilla.

Since you are up and running, I would suggest using Yast bootloader, and change something. If nothing else, change the timeout by 1 second. That will reinstall grub and regenerate grub.cfg.

On Leap 15.5, a normal “grub.cfg” uses the full path to kernel and to the initd. But using the symlink should also work.

Thanks for the reassurance. I’ll follow your suggestion.

99.7% of my openSUSE booting since many many many moons ago is via grub stanzas pointing to initrd and vmlinuz symlinks. :smiley: