[dm-crypt] How to suspend to disk with random encrypted swap

David Niklas doark at mail.com
Sat Oct 22 15:55:19 CEST 2016


Hello,
I use a random encrypted swap partition, and I want to suspend my system
to disk. I'm having two problems.
1. How does the kernel know where to resume from/at all?
2. How do I get the random passphrase for decrypting the swap (and
remember it)?

Gentoo linux
cryptsetup 1.7.2

###### /etc/conf.d/dmcrypt #########

swap=swap
options=' -c aes -h sha256 -d /dev/urandom '
source='/dev/sda2'

####################################

Thanks,
David


More information about the dm-crypt mailing list