[PATCH v2] qemu: tpm: Run swtpm_setup --create-config-files in session mode

Stefan Berger stefanb at linux.ibm.com
Fri Oct 8 14:54:42 UTC 2021


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





More information about the libvir-list mailing list