]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(tpm2-tss): add tpm2.target and systemd-tpm2-generator
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 19 Feb 2024 14:22:42 +0000 (15:22 +0100)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Tue, 16 Apr 2024 00:34:20 +0000 (20:34 -0400)
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

index e145c415ff5045b2ac24e4b0ade23e8a5a1d934e..4106e3e0a7103516bf381425d6a3eaad007613e4 100755 (executable)
@@ -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