On 1/13/19 2:26 PM, Neven Sajko via arch-general wrote: >> pardon for asking, but why in the heck would you want to partition the >> encrypted volume? that is going to cause tenfold headache for you down >> the road. >> >> -- >> brent saner >> https://square-r00t.net/ >> GPG info: https://square-r00t.net/gpg-info > > I need one partition for swap and one for the filesystem mounted on /.
Do you need the swap to be persistent across reboots in order to support hibernation? If not, it is sufficient to have the swap mounted with a randomized key. If you do need hibernation support, the simple method would be to use a swap file residing on the encrypted / The more complex method would be to copy the initramfs encrypt hook and modify it to support an additional encrypted device with a different password. None of this needs kpartx. -- Eli Schwartz Bug Wrangler and Trusted User
signature.asc
Description: OpenPGP digital signature