Public bug reported:

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=LUKS=/name/of/harddiskpartition:devicemapper name (actual process 
depends on the bootloader used)
For example resume=LUKS=/dev/hda3:cryptswap
* 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.

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
[PATCH] allow resume from LUKS encrypted swap partition
https://launchpad.net/bugs/91867

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to