The problem is running "mkswap", this will generate a new UUID and thus obsolete the information in both the /etc/fstab and /etc/initramfs-tools/conf.d/resume files -- which is why you need to edit those afterwards.
The problem is running "mkswap", this will generate a new UUID and thus obsolete the information in both the /etc/fstab and /etc/initramfs- tools/conf. d/resume files -- which is why you need to edit those afterwards.