I have switched from using UUIDs to /dev paths in cryptsetup and now that problem is gone, however, the swap STILL won't work. Now I have this:
$ journalctl -b | grep -i crypt May 13 16:40:04 localhost kernel: Key type encrypted registered May 13 16:40:04 localhost systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) May 13 16:40:04 localhost systemd[1]: Created slice system-systemd\x2dcryptsetup.slice. May 13 16:40:08 localhost systemd[1]: Starting Cryptography Setup for sda3_crypt... May 13 16:40:08 localhost systemd[1]: Starting Cryptography Setup for sda2_crypt... May 13 16:40:08 localhost systemd-cryptsetup[621]: Volume sda3_crypt already active. May 13 16:40:08 localhost systemd[1]: Started Cryptography Setup for sda3_crypt. May 13 16:40:09 localhost systemd-cryptsetup[629]: Set cipher aes, mode cbc-essiv:sha256, key size 256 bits for device /dev/sda2. May 13 16:40:10 localhost systemd[1]: Found device /dev/mapper/sda2_crypt. May 13 16:40:10 localhost systemd[1]: Activating swap /dev/mapper/sda2_crypt... May 13 16:40:10 localhost mkswap[672]: mkswap: /dev/mapper/sda2_crypt: warning: wiping old swap signature. May 13 16:40:10 localhost swapon[674]: swapon: /dev/mapper/sda2_crypt: swapon failed: Device or resource busy May 13 16:40:10 localhost systemd[1]: dev-mapper-sda2_crypt.swap: Swap process exited, code=exited status=255 May 13 16:40:10 localhost systemd[1]: Failed to activate swap /dev/mapper/sda2_crypt. May 13 16:40:10 localhost systemd[1]: dev-mapper-sda2_crypt.swap: Unit entered failed state. May 13 16:40:10 localhost systemd[1]: Started Cryptography Setup for sda2_crypt. May 13 16:40:10 localhost systemd[1]: Reached target Encrypted Volumes. Running swapon /dev/mapper/sda2_crypt manually later enables the swap. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567085 Title: LUKS swap partition destroyed upon reboot in 15.10 and 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1567085/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
