[arch-general] Encrypted swap and suspend-to-disk
Hi, I just did a fresh Arch install with encrypted /, /home, and swap partitions, following the LUKS Encrypted Root[1] how-to in the wiki. I have trouble getting suspend-to-disk (using uswsusp[2] from AUR) to work: creating the suspend image works fine, but I can't resume for the simple reason that the encrypted swap that contains the image gets unlocked *after* suspend tries (and fails) to read from it. Is there any way to get this to work properly? Should I file a bug report, and if so against which package? [1]http://wiki.archlinux.org/index.php/LUKS_Encrypted_Root [2]http://suspend.sourceforge.net/
On Thu, 2007-11-29 at 15:24 +0000, Felix Leckow wrote:
Hi,
I just did a fresh Arch install with encrypted /, /home, and swap partitions, following the LUKS Encrypted Root[1] how-to in the wiki. I have trouble getting suspend-to-disk (using uswsusp[2] from AUR) to work: creating the suspend image works fine, but I can't resume for the simple reason that the encrypted swap that contains the image gets unlocked *after* suspend tries (and fails) to read from it.
Is there any way to get this to work properly? Should I file a bug report, and if so against which package?
[1]http://wiki.archlinux.org/index.php/LUKS_Encrypted_Root [2]http://suspend.sourceforge.net/
_______________________________________________ arch-general mailing list arch-general@archlinux.org http://archlinux.org/mailman/listinfo/arch-general
Same question here. when I installed ArchLinux, I only encrypted /home. I left out both / and swap partitions in fear this would break suspend to disk.
Might I suggest changing the order of the mkinitcpio hooks? Perhaps if encrypt happens before resume, the resume image will stand a better chance of being decrypted. Then again, I havn't used encryption. * On Thursday, November 29 2007, Felix Leckow wrote:
Hi,
I just did a fresh Arch install with encrypted /, /home, and swap partitions, following the LUKS Encrypted Root[1] how-to in the wiki. I have trouble getting suspend-to-disk (using uswsusp[2] from AUR) to work: creating the suspend image works fine, but I can't resume for the simple reason that the encrypted swap that contains the image gets unlocked *after* suspend tries (and fails) to read from it.
Is there any way to get this to work properly? Should I file a bug report, and if so against which package?
[1]http://wiki.archlinux.org/index.php/LUKS_Encrypted_Root [2]http://suspend.sourceforge.net/
_______________________________________________ arch-general mailing list arch-general@archlinux.org http://archlinux.org/mailman/listinfo/arch-general
On Fri, Nov 30, 2007 at 04:57:44PM -0500, Adam Vogt wrote:
Might I suggest changing the order of the mkinitcpio hooks?
Thanks for the suggestion, but that won't work because the encrypt hook deals only with the root partition. I've got it working now by changing the resume hook to create the swap node and unlock the partition. It's kludgy and non-general but it'll probably tide me over until there's an official solution.
participants (3)
-
Adam Vogt
-
Felix Leckow
-
Hussam Al-Tayeb