Ubuntu Trusty 14.04.1
$ free --human total Mem: 15.7G -/+ buffers/cache: 985M Swap: 0.0B
$ swapon --summary Filename Type Size Used Priority
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1310058/comments/3 should have solved the problem, but no. After modifying /etc/cryptswap from:
cryptswap1 UUID=01234567-89ab-cdef-0123-456789abcdef /dev/urandom swap,cipher=aes-cbc-essiv:sha256
to
cryptswap1 UUID=01234567-89ab-cdef-0123-456789abcdef /dev/urandom swap,offset=8,cipher=aes-cbc-essiv:sha256
the problem persists. The same with the line:
cryptswap1 /dev/sdaX /dev/urandom swap,cipher=aes-cbc-essiv:sha256
after formating the swap partition with the old UUID:
sudo mkswap --label Ubuntu\ Swap --uuid 01234567-89ab-cdef-0123-456789abcdef /dev/sdaX
and rebooting the system. So I guess the problem is due to a race condition of the /etc/init.d/cryptdisks-early script. If I disable it the swap partition is mounted automatically on every reboot.
Ubuntu Trusty 14.04.1
$ free --human
total
Mem: 15.7G
-/+ buffers/cache: 985M
Swap: 0.0B
$ swapon --summary
Filename Type Size Used Priority
https:/ /bugs.launchpad .net/ubuntu/ +source/ ecryptfs- utils/+ bug/1310058/ comments/ 3 should have solved the problem, but no. After modifying /etc/cryptswap from:
cryptswap1 UUID=01234567- 89ab-cdef- 0123-456789abcd ef /dev/urandom swap,cipher= aes-cbc- essiv:sha256
to
cryptswap1 UUID=01234567- 89ab-cdef- 0123-456789abcd ef /dev/urandom swap,offset= 8,cipher= aes-cbc- essiv:sha256
the problem persists. The same with the line:
cryptswap1 /dev/sdaX /dev/urandom swap,cipher= aes-cbc- essiv:sha256
after formating the swap partition with the old UUID:
sudo mkswap --label Ubuntu\ Swap --uuid 01234567- 89ab-cdef- 0123-456789abcd ef /dev/sdaX
and rebooting the system. So I guess the problem is due to a race condition of the /etc/init. d/cryptdisks- early script. If I disable it the swap partition is mounted automatically on every reboot.