[CentOS-devel] Centos9 - systemd with no tpm2

Tue Oct 26 08:53:13 UTC 2021
František Šumšal <frantisek at sumsal.cz>

Hi,

On 10/25/21 11:53 PM, lejeczek via CentOS-devel wrote:
> Hi.
> 
> fiddling with Stream 9 - is this a fluke or intentional,
> 
> -> $ systemd-cryptenroll --tpm2-device=list
> TPM2 not supported on this build.
> 
> and why if the latter , would anybody know?

TPM should be enabled[0], however, systemd in C9S inherited
the "weak" dependencies, i.e. certain dependencies are
dlopen()-ed when needed instead of linking with them directly.
TPM is one of such dependencies[1], so make sure you have
libtss2-rc.so.0 and libtss2-mu.so.0 installed (provided by
tpm2-tss).


[0] https://gitlab.com/redhat/centos-stream/rpms/systemd/-/blob/c9s/systemd.spec#L446
[1] https://github.com/redhat-plumbers/systemd-rhel9/blob/2c98d6adc22458d030f164e4b40329da87f8c0b5/src/shared/tpm2-util.c#L44
> 
> many thanks, L.
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://lists.centos.org/mailman/listinfo/centos-devel


-- 
Frantisek Sumsal
GPG key ID: 0xFB738CE27B634E4B