tests/ostree: use local install

Download the boot.iso to the hypervisor to use local install instead of
networked which allows to use lower RAM.
This commit is contained in:
Jakub Rusz 2023-01-09 11:11:45 +01:00 committed by Jakub Rusz
parent 6d0c8ced8d
commit 340f79c537

View file

@ -445,18 +445,23 @@ if [[ "${USER_IN_COMMIT}" == "true" ]]; then
sudo sed -i '/^user\|^sshkey/d' "${KS_FILE}"
fi
# Get the boot.iso from BOOT_LOCATION
curl -O "$BOOT_LOCATION"/images/boot.iso
sudo mv boot.iso /var/lib/libvirt/images
LOCAL_BOOT_LOCATION="/var/lib/libvirt/images/boot.iso"
# Install ostree image via anaconda.
greenprint "Install ostree image via anaconda"
sudo virt-install --initrd-inject="${KS_FILE}" \
--extra-args="inst.ks=file:/ks.cfg console=ttyS0,115200" \
--name="${IMAGE_KEY}"\
--disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \
--ram 3072 \
--ram 2048 \
--vcpus 2 \
--network network=integration,mac=34:49:22:B0:83:30 \
--os-type linux \
--os-variant ${OS_VARIANT} \
--location "${BOOT_LOCATION}" \
--location "${LOCAL_BOOT_LOCATION}" \
--nographics \
--noautoconsole \
--wait=-1 \