]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Extend swtpm_setup command line to set a profile by its name
authorStefan Berger <stefanb@linux.ibm.com>
Wed, 13 Nov 2024 17:39:48 +0000 (12:39 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Nov 2024 07:46:38 +0000 (08:46 +0100)
commitcd37721d199c8081d968112ee9aa2fbca3252fea
treedeed71e90aa8f8b7e94d93a640302d2864dc34ef
parent526f08da62570f413ab697aec05466cf1cc94783
qemu: Extend swtpm_setup command line to set a profile by its name

Run swtpm_setup with the --profile-name option if the user provided the
name of a profile. swtpm_setup will try to load the profile from
directories with local profiles and distro profiles and if no profile
by this name with appended '.json' suffix could be found there, it will
fall back to try to use an internal profile with the given name.

Also set the --profile-remove-disabled option if the user provided a value
in the remove_disabled attribute in the profile XML node.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_tpm.c