diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-04-15 17:41:37 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-04-15 22:33:45 +0200 |
commit | 27dd678d2d378b46ea995389dd7641fcc6a7eb40 (patch) | |
tree | 5baa5b414a4e30f669daa808e64b86f560d8b924 /units | |
parent | dissect: refuse to use diskseq if ID_IGNORE_DISKSEQ=1 is specified (diff) | |
download | systemd-27dd678d2d378b46ea995389dd7641fcc6a7eb40.tar.xz systemd-27dd678d2d378b46ea995389dd7641fcc6a7eb40.zip |
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
Diffstat (limited to 'units')
-rw-r--r-- | units/systemd-repart.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/units/systemd-repart.service b/units/systemd-repart.service index 5c9e6fb8b1..1f7e2a612a 100644 --- a/units/systemd-repart.service +++ b/units/systemd-repart.service @@ -21,7 +21,7 @@ ConditionDirectoryNotEmpty=|/sysusr/usr/local/lib/repart.d DefaultDependencies=no Wants=modprobe@loop.service modprobe@dm_mod.service -After=initrd-usr-fs.target modprobe@loop.service modprobe@dm_mod.service +After=initrd-usr-fs.target modprobe@loop.service modprobe@dm_mod.service systemd-tpm2-setup-early.service Before=initrd-root-fs.target Conflicts=shutdown.target initrd-switch-root.target Before=shutdown.target initrd-switch-root.target |