[CentOS-devel] Centos9 - systemd with no tpm2

Tue Oct 26 16:50:22 UTC 2021
lejeczek <peljasz at yahoo.co.uk>


On 26/10/2021 09:53, František Šumšal wrote:
> 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).
>
Nope, tpm2-tss is present in system.
Should this go into Bugzilla perhaps?
thanks, L.

>
> [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
>>