[PATCH] allow resume from LUKS encrypted swap partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Incomplete
|
Wishlist
|
Unassigned | ||
Bug Description
Binary package hint: initramfs-tools
The attached patch allows to suspend and resume to a LUKS encrypted swap partition. This means that all data (including passwords) that would otherwise be written to disk in plain text will be encrypted.
To make use of the patch, you must
* create a LUKS encrypted partition
* activate the device with cryptsetup luksOpen
* run mkswap on it and enter it in fstab as swap
* change your kernel's resume=* line to
resume=
For example resume=
* then run update-initramfs to build a new initramfs.
You will then be asked to provide the password for the swap partition upon boot and the script will try to resume from it. If it can't find swsuspend signatures, boot will continue. The script will also automatically setup correct suspend device for swsuspend.
I have extensively tested this on Feisty.
resume from LUKS encrypted swap patch