[systemd-devel] Ordering units and targets with devices

Lennart Poettering lennart at poettering.net
Thu Aug 25 10:43:30 UTC 2022


On Mi, 17.08.22 13:23, Michael Cassaniti (michael at cassaniti.id.au) wrote:

> Hi,
>
> I'm trying to order my units and targets during early boot so that:
> 1. A symlink to the specific FIDO2 token I'm using gets created. I already
> have a udev rule in place for this and it successfully creates the symlink
> under /dev. Because I have two tokens I need to specify which one to use.
> 2. The unit for systemd-cryptsetup at root.service has to wait for this unit.
> The unit gets generated from systemd-cryptsetup-generator so I can't just
> add Requires= stanzas to the unit. I do have a /etc/crypttab file.

systemd-cryptsetup can wait on its own for a FIDO2 token, no need to
do that with unit deps?

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list