Nop! Not mkswap's fault. The UUID is not updated in /dev/disk/by-uuid/ So it's udev's fault I presume...
After reboot, the UUID is correct: ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 2006-09-21 09:49 07D6-0215 -> ../../hda1 lrwxrwxrwx 1 root root 10 2006-09-21 09:49 0a0c8bdd-8022-4a14-a611-a0a15e059850 -> ../../hda2 lrwxrwxrwx 1 root root 10 2006-09-21 09:49 5e9dc7c0-935d-4c33-94ed-5c9d9e704e02 -> ../../hda5 lrwxrwxrwx 1 root root 10 2006-09-21 09:49 a23404dd-da54-4776-99ca-04de898751ff -> ../../hda3 -- mkswap reports wrong uuid https://launchpad.net/bugs/61474 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs