On 10/8/21 10:43 AM, Daniel P. Berrangé wrote:

This error path will trigger preventing use of the TPM, even if
the user has manually setup the config themselves.

Why aren't you running /usr/share/swtpm/swtpm-create-user-config-files
instead which is what I see does exist on Fedora today.

That one will exit with error code '1' if any one file exists:

# /usr/share/swtpm/swtpm-create-user-config-files
File /home/stefanb/.config/swtpm_setup.conf already exists. Refusing to overwrite.
# echo $?
1

It wasn't designed to be run by libvirt but by the user on the command line.


   Stefan



RHEL-8 has even older swtpm than Fedora.

Regards,
Daniel


Reply via email to