Skip to content

Commit 565377c

Browse files
committed
test: disable TPM emulation in virt-install commands
Add --tpm none to all virt-install commands to work around SELinux regression with swtpm on Fedora Rawhide hosts. TPM is not used in greenboot tests, so disabling it avoids the swtpm-related failures without affecting test coverage. Suggested-by: Klara Zatloukalova <kzatloka@redhat.com> Signed-off-by: Sarita Mahajan <sarmahaj@redhat.com>
1 parent eb7d75c commit 565377c

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/greenboot-bootc-anaconda-iso.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ sudo virt-install --name="${TEST_UUID}-uefi"\
339339
--location "/var/lib/libvirt/images/install.iso",kernel=images/pxeboot/vmlinuz,initrd=images/pxeboot/initrd.img \
340340
--extra-args "console=ttyS0,115200 inst.stage2=hd:LABEL=${ISO_LABEL} inst.ks=hd:LABEL=${ISO_LABEL}:/osbuild.ks" \
341341
--boot ${BOOT_ARGS} \
342+
--tpm none \
342343
--graphics none \
343344
--serial file,path=${CONSOLE_LOG} \
344345
--noautoconsole \

tests/greenboot-bootc-qcow2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ sudo virt-install --name="${TEST_UUID}-uefi"\
326326
--os-type linux \
327327
--os-variant ${OS_VARIANT} \
328328
--boot ${BOOT_ARGS} \
329+
--tpm none \
329330
--graphics none \
330331
--serial file,path=${CONSOLE_LOG} \
331332
--noautoconsole \

tests/greenboot-ostree.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ sudo virt-install --name="${IMAGE_KEY}"\
477477
--network network=integration,mac=34:49:22:B0:83:30 \
478478
--os-variant ${OS_VARIANT} \
479479
--boot ${BOOT_ARGS} \
480+
--tpm none \
480481
--location "${BOOT_LOCATION}" \
481482
--graphics none \
482483
--serial file,path=${CONSOLE_LOG} \

0 commit comments

Comments
 (0)