]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
rules: tag /dev/tpm0 with "systemd" too
authorLennart Poettering <lennart@poettering.net>
Fri, 7 Mar 2025 13:55:43 +0000 (14:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Mar 2025 15:09:32 +0000 (16:09 +0100)
Strictly speaking we don't need to tag these devices, because tpm2-tss
already does so, but given we do this for /dev/tpmrm0, we should
probably do this comprehensively if we rely on this ourselves.

Fixes: #36653
rules.d/99-systemd.rules.in

index 3fd3ea3ecd05d065f8cf5f2f7c3eb8dc443da439..18622d6bf25516d7436d3fe105deb73087064c19 100644 (file)
@@ -104,7 +104,9 @@ SUBSYSTEM=="misc", KERNEL=="rfkill", TAG+="systemd", ENV{SYSTEMD_WANTS}+="system
 SUBSYSTEM=="module", KERNEL=="fuse", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-fs-fuse-connections.mount"
 SUBSYSTEM=="module", KERNEL=="configfs", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-kernel-config.mount"
 
-# Pull in tpm2.target whenever /dev/tpmrm* shows up
+# Pull in tpm2.target whenever the full-blown /dev/tpmrm* shows up (and also
+# tag the version without resource manager, so that we can sync on it).
 SUBSYSTEM=="tpmrm", KERNEL=="tpmrm[0-9]*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="tpm2.target"
+SUBSYSTEM=="tpm", KERNEL=="tpm[0-9]*", TAG+="systemd"
 
 LABEL="systemd_end"