I tried every trick in the book and I still can not encrypt the swap file. I always get the error:
cannot open /dev/mapper/cryptswap1: No such file or directory
So far, I tried creating the CLEANEST swap file, that runs in
blkid and is noted with UUID in
crypttab has just the header and no
cryptswap1. I'd check that UUID works by turning swap on and off, then I try to encrypt and I get the error mentioned above.
I tried editing
/etc/crypttab to include UUID of previous swap. I also made sure that
/etc/fstab is properly defined in
swapon and I get, again, the same error.
I try restarting the service as suggested in previous posts by first turning swap off then restart
/etc/init.d/cryptdisks start and try to start again. No luck again.
When restarting the boot lasts longer than usual but the swap is off, and, AGAIN, no file is created.