From 920431a67944b4668fbe6f10e464ebcf939ca3ee Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Wed, 23 Nov 2022 19:27:07 +0800 Subject: [PATCH] test: Disable secure boot for CS9 on libvirt_test.sh --- tools/libvirt_test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/libvirt_test.sh b/tools/libvirt_test.sh index a993f58d6..4d444bf99 100755 --- a/tools/libvirt_test.sh +++ b/tools/libvirt_test.sh @@ -279,6 +279,12 @@ elif [[ $ARCH == 's390x' ]]; then else # Both aarch64 and x86_64 support hybrid boot if [[ $BOOT_TYPE == 'uefi' ]]; then + # Disable secure boot for CS9 due to bug bz#2108646 + if [[ "${ID}-${VERSION_ID}" == "centos-9" ]] ; then + BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no" + else + BOOT_ARGS="uefi,nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd" + fi sudo virt-install \ --name "$IMAGE_KEY" \ --memory 1024 \ @@ -288,7 +294,7 @@ else --import \ --os-variant rhel8-unknown \ --noautoconsole \ - --boot uefi,nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd \ + --boot "${BOOT_ARGS}" \ --network network=integration,mac=34:49:22:B0:83:30 else sudo virt-install \