Skip to content

Commit

Permalink
tests/lib: adapt to new OVMF paths on 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsosanchezbeato committed Feb 6, 2024
1 parent 3ab7b24 commit 31ede5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/lib/nested.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ start_nested_core_vm_unit(){

# TODO: enable ms key booting for i.e. nightly edge jobs ?
OVMF_CODE=""
OVMF_VARS=""
OVMF_VARS="_4M"
OVMF_VARS_D="/usr/share/OVMF"
if [ "${ENABLE_SECURE_BOOT:-false}" = "true" ]; then
OVMF_CODE=".secboot"
Expand All @@ -123,7 +123,7 @@ start_nested_core_vm_unit(){

mkdir -p "${WORK_DIR}/image/"
cp -f "${OVMF_VARS_D}/OVMF_VARS${OVMF_VARS}.fd" "${WORK_DIR}/image/OVMF_VARS${OVMF_VARS}.fd"
PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE${OVMF_CODE}.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${WORK_DIR}/image/OVMF_VARS${OVMF_VARS}.fd,if=pflash,format=raw"
PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE_4M${OVMF_CODE}.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${WORK_DIR}/image/OVMF_VARS${OVMF_VARS}.fd,if=pflash,format=raw"
PARAM_MACHINE="-machine q35${ATTR_KVM} -global ICH9-LPC.disable_s3=1"

# Unfortunately the test-snapd-swtpm snap does not work correctly in lxd
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/prepare-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ start_snapd_core_vm() {
fi

mkdir -p "${work_dir}/image/"
cp -f "/usr/share/OVMF/OVMF_VARS.fd" "${work_dir}/image/OVMF_VARS.fd"
PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${work_dir}/image/OVMF_VARS.fd,if=pflash,format=raw"
cp -f "/usr/share/OVMF/OVMF_VARS_4M.fd" "${work_dir}/image/OVMF_VARS_4M.fd"
PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE_4M.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${work_dir}/image/OVMF_VARS_4M.fd,if=pflash,format=raw"
PARAM_MACHINE="-machine q35${ATTR_KVM} -global ICH9-LPC.disable_s3=1"
PARAM_IMAGE="-drive file=${work_dir}/pc.img,cache=none,format=raw,id=disk1,if=none -device virtio-blk-pci,drive=disk1,bootindex=1"

Expand Down

0 comments on commit 31ede5c

Please sign in to comment.