You can look at a sample at: http://wiki.tuxonice.net/EncryptedSwapAndRoot It uses suspend2 but can easily be converted to swsusp... All you have to do is modify f_suspend2_resume behavior. If you do, please send me a patch. Best Regards, Alon Bar-Lev. On 7/13/07, Hank Leininger <hlein@xxxxxxxxxxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, The question of loop-aes + swsusp has come up multiple times over the years, but not for a while. By that I mean, suspending a loop-aes- encrypted-root system to a loop-aes encrypted swap partition, which is reinstated by the initrd prior to resuming. Jari points out problems w/this in: http://marc.info/?l=linux-crypto&m=117497724023950&w=2 It looks like Jari had just updated loop-aes to make it compatible with swsusp in general (in release 2.0f), but there were still problems doing encrypted root + swsusp. Has anybody done any further work on this, like the initrd changes that might make it come together? Jari, do you think that such initrd tweaks as you suggested then, would be enough to make it work, or are there in fact other reasons why this may not be doable? Thanks, Hank Leininger <hlein@xxxxxxxxxxxxxxxxxxxx> D639 2E70 96A4 96D4 9AB6 95D6 A8FD BA7C 7093 F8F3 -----BEGIN PGP SIGNATURE----- iD8DBQFGl6X9qP26fHCT+PMRAp9kAKCDUW+v/X5mhAglDJqiaGf9JMfDLwCcCDIQ e28ew7Axx5cbIoyoRMhKzbM= =WPaA -----END PGP SIGNATURE----- - Linux-crypto: cryptography in and on the Linux system Archive: http://mail.nl.linux.org/linux-crypto/
- Linux-crypto: cryptography in and on the Linux system Archive: http://mail.nl.linux.org/linux-crypto/