Skip to content

Commit

Permalink
feat(systemd-pcrphase): add tpm2.target and systemd-tpm2-generator
Browse files Browse the repository at this point in the history
systemd/systemd@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.
  • Loading branch information
aafeijoo-suse committed Jan 4, 2024
1 parent 4971f44 commit d1dcef0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules.d/01systemd-pcrphase/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ install() {

inst_multiple -o \
"$systemdutildir"/systemd-pcrphase \
"$systemdutildir"/system-generators/systemd-tpm2-generator \
"$systemdsystemunitdir/tpm2.target" \
"$systemdsystemunitdir"/systemd-pcrphase-initrd.service \
"$systemdsystemunitdir/systemd-pcrphase-initrd.service.d/*.conf" \
"$systemdsystemunitdir"/initrd.target.wants/systemd-pcrphase-initrd.service
Expand Down

0 comments on commit d1dcef0

Please sign in to comment.