From edd870eda138bb9fe617f3e71b524dcf7d631e65 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Mon, 19 Feb 2024 15:22:42 +0100 Subject: [PATCH] feat(tpm2-tss): add tpm2.target and systemd-tpm2-generator https://github.com/systemd/systemd/commit/4e1f0037 added a new `tpm2.target`, which is now used by `systemd-pcrphase-initrd.service`, and `systemd-tpm2-generator`, which adds a `Wants=` dependency from `sysinit.target` to `tpm2.target` when it detects that the firmware discovered a TPM2 device but the kernel didn't. --- modules.d/91tpm2-tss/module-setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules.d/91tpm2-tss/module-setup.sh b/modules.d/91tpm2-tss/module-setup.sh index e145c415f..4106e3e0a 100755 --- a/modules.d/91tpm2-tss/module-setup.sh +++ b/modules.d/91tpm2-tss/module-setup.sh @@ -35,6 +35,8 @@ install() { "$sysusers"/tpm2-tss.conf \ "$tmpfilesdir"/tpm2-tss-fapi.conf \ "$udevrulesdir"/60-tpm-udev.rules \ + "$systemdutildir"/system-generators/systemd-tpm2-generator \ + "$systemdsystemunitdir/tpm2.target" \ tpm2_pcrread tpm2_pcrextend tpm2_createprimary tpm2_createpolicy \ tpm2_create tpm2_load tpm2_unseal tpm2