]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: properly wait for swtpm to finish before the initrd transition
authorLennart Poettering <lennart@amutable.com>
Thu, 9 Jul 2026 09:26:36 +0000 (11:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2026 11:33:06 +0000 (13:33 +0200)
Hopefully fixes: #42936

units/systemd-tpm2-swtpm.service.in

index e9127f34c909413ee3d81606e839c9f5a5cd818d..d7accfb330a15a2a65d3f2a0c31a80630645d7cb 100644 (file)
 Description=Fallback Software TPM
 Documentation=man:systemd-tpm2-swtpm.service(8)
 DefaultDependencies=no
-Conflicts=shutdown.target
+Conflicts=shutdown.target initrd-switch-root.target
 After=systemd-sysusers.service
 Wants=modprobe@tpm_vtpm_proxy.service
 After=modprobe@tpm_vtpm_proxy.service
-Before=tpm2.target sysinit.target shutdown.target
+Before=tpm2.target sysinit.target shutdown.target initrd-switch-root.target
 
 [Service]
 CapabilityBoundingSet=CAP_SYS_ADMIN