From c373d9971dbdf834d2e1806e3ac1e92cff4d296f Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 9 Sep 2022 13:41:43 +0200 Subject: [PATCH] test: add --import to virt-install for UEFI The option was already there for the BIOS case and now it (or any other install method) is required in newer versions of virt-manager. --- test/cases/ostree-raw-image.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cases/ostree-raw-image.sh b/test/cases/ostree-raw-image.sh index 928c9ebea..efb26c909 100755 --- a/test/cases/ostree-raw-image.sh +++ b/test/cases/ostree-raw-image.sh @@ -409,6 +409,7 @@ greenprint "👿 Running restorecon on image directory" sudo restorecon -Rv /var/lib/libvirt/images/ greenprint "💿 Installing raw image on BIOS VM" +# TODO: os-type is deprecated in newer versions; remove conditionally sudo virt-install --name="${IMAGE_KEY}-bios"\ --disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \ --ram 3072 \ @@ -482,12 +483,14 @@ greenprint "👿 Running restorecon on image directory" sudo restorecon -Rv /var/lib/libvirt/images/ greenprint "💿 Installing raw image on UEFI VM" +# TODO: os-type is deprecated in newer versions; remove conditionally sudo virt-install --name="${IMAGE_KEY}-uefi"\ --disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \ --ram 3072 \ --vcpus 2 \ --network network=integration,mac=34:49:22:B0:83:31 \ --os-type linux \ + --import \ --os-variant ${OS_VARIANT} \ --boot uefi,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd,loader_secure=no \ --nographics \