[systemd-devel] encrypted swap

Stefan G. Weichinger lists at xunil.at
Wed Feb 13 15:23:33 PST 2013


I see an issue with systemd-197 on one of my gentoo systems.

Encrypted swap doesn't get enabled correctly as mentioned below.

In the git-repo of systemd I read in the TODO-file:

> swap units that are activated by one name but shown in the kernel
> under another are semi-broken

Might that be related to the behavior I see?

-

I quote my posting to the gentoo-users-ml:

> I always get timeouts as systemd waits for the decrypted 
> mapper-device to come up. Swap doesn't get enabled but when it 
> finally continues to boot I see the valid mapper-device there and
> can "swapon" it manually.
> 
> # cat /etc/crypttab
> 
> swap 
> /dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO015404LR080JGN-part5 
> /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256
> 
> # grep swap /etc/fstab /dev/mapper/swap	none	swap	defaults	0 0
> 
> AFAI understand these 2 lines should be enough to let systemd 
> generate its relevant unit-files etc.
> 
> Right?

Thanks, Stefan


More information about the systemd-devel mailing list