Systemd/src/cryptsetup
Jonathan Lebon 6c5496c492 units: add initrd-cryptsetup.target
For encrypted block devices that we need to unlock from the initramfs,
we currently rely on dracut shipping `cryptsetup.target`. This works,
but doesn't cover the case where the encrypted block device requires
networking (i.e. the `remote-cryptsetup.target` version). That target
however is traditionally dynamically enabled.

Instead, let's rework things here by adding a `initrd-cryptsetup.target`
specifically for initramfs encrypted block device setup. This plays the
role of both `cryptsetup.target` and `remote-cryptsetup.target` in the
initramfs.

Then, adapt `systemd-cryptsetup-generator` to hook all generated
services to this new unit when running from the initrd. This is
analogous to `systemd-fstab-generator` hooking all mounts to
`initrd-fs.target`, regardless of whether they're network-backed or not.
2020-10-21 22:08:19 +02:00
..
cryptsetup-generator.c units: add initrd-cryptsetup.target 2020-10-21 22:08:19 +02:00
cryptsetup-keyfile.c shared: rename crypt-util.c → cryptsetup-util.c 2020-09-02 15:00:32 +02:00
cryptsetup-keyfile.h shared: rename crypt-util.c → cryptsetup-util.c 2020-09-02 15:00:32 +02:00
cryptsetup-pkcs11.c shared: rename crypt-util.c → cryptsetup-util.c 2020-09-02 15:00:32 +02:00
cryptsetup-pkcs11.h cryptsetup: automatically load luks keys off disk 2020-05-19 17:28:25 +02:00
cryptsetup.c tree-wide: assorted coccinelle fixes 2020-10-09 15:02:23 +02:00