3 ms·
If you're using systemd you can do this by setting up /etc/crypttab[1] which has a similar format to fstab. For example, here's my swap line: eswap /dev
by cryptonaut 11y ago
If you're using systemd you can do this by setting up /etc/crypttab[1] which has a similar format to fstab. For example, here's my swap line:
eswap /dev/mapper/vg0-swap /dev/urandom swap,cipher=aes-cbc-essiv:sha256
[1] http://www.freedesktop.org/software/systemd/man/crypttab.html http://www.freedesktop.org/software/systemd/man/crypttab.htm...
- scintill76 11y agoFWIW it's not specific to systemd -- I've been using /etc/crypttab for full-disk encryption (LUKS) for a few years on Ubuntu. The file is consulted when building the initrd, to build in whatever magic is needed to decrypt the disks at boot.