How to update the "resume" UUID on grub

sorry it may be a silly question. I just replaced the second HDD (/home and swap there), system stuck on “remote recovery” - I can bypass it - temporary - by removing the recovery UUID entry on grub (still has the UUID of the old swap partition) . I tried a ‘grub2-mkconfig’ but that did not update the grub entry, I may miss something, any help welcome.

If you updated the UUID in /etc/default/grub then the command line is:

grub2-mkconfig -o /boot/grub2/grub.cfg --update-bls-cmdline

This will then update the config files in /boot/loader/entries/ which are the scripts that populate the kernel parameters on boot.

arghh… sorry… I did not update any UUID on /boot/grub2/grub.cfg , I setup the new swap and updated the entry on /etc/fstab, , btw it is the resume=UUID= I need to update on grub2 - I wrote recovery above, not correct - brain fscked with that… apologies

UPDATE

I updated the resume UUID on the /etc/default/grub , not sure if this is the correct procedure, at least the system does not stuck on boot…