From 50b77e7d62be2eb94db99a3ba84aa0aee80c7a17 Mon Sep 17 00:00:00 2001 From: Martin Chen Date: Tue, 23 Oct 2018 05:14:07 +0800 Subject: [PATCH] Fix host check wrong in virt-support-goenabled.sh Closes-Bug: 1798773 Change-Id: Ie62b7dfdf835ef60f9e7ba81f60dbcc517417a78 Signed-off-by: Martin Chen --- mtce-compute/src/scripts/virt-support-goenabled.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtce-compute/src/scripts/virt-support-goenabled.sh b/mtce-compute/src/scripts/virt-support-goenabled.sh index 2ecc591d..753914d3 100755 --- a/mtce-compute/src/scripts/virt-support-goenabled.sh +++ b/mtce-compute/src/scripts/virt-support-goenabled.sh @@ -47,7 +47,7 @@ REASONS=$(virt-host-validate qemu 2>/dev/null | grep -w -e FAIL) # - on emulated systems such as VirtualBox or QEMU, vmx is not required # - if vmx is enabled on QEMU, it can also support nested virtualization -if [ "${host_type}" = "physical" ] && [ "${hardware_virt_supported}" == "false" ]; then +if [ "${host_type}" == "physical" ] && [ "${hardware_virt_supported}" == "false" ]; then LOG "Virtualization is not supported: ${OPTS}. Failing goenabled check." LOG "Failure reasons:"$'\n'"${REASONS}" exit 1