units: order repart after systemd-tpm2-setup-early.service
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Apr 2024 15:41:37 +0000 (17:41 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 15 Apr 2024 20:33:45 +0000 (22:33 +0200)
commit27dd678d2d378b46ea995389dd7641fcc6a7eb40
tree5baa5b414a4e30f669daa808e64b86f560d8b924
parente2f0876ecdd366d44f981e1bb3d3ba5be73647aa
units: order repart after systemd-tpm2-setup-early.service

This mimics what we do for systemd-cryptsetup@.service (see
src/shared/generator.c), and makes sense since repart might lock up the
root volume against a TPM, which ideally has its SRK already set up by
then.

More importantly though, this ensures that we ordered correctly after
tpm2.target (which systemd-tpm2-setup-early.service has a dependency
on), for systems where the TPM drivers are not compiled into the kernel.

See: https://lists.freedesktop.org/archives/systemd-devel/2024-April/050201.html
units/systemd-repart.service