Skip to content

Commit 1fdf33b

Browse files
committed
ci(os): check duplicate guest OVMF explicitly
1 parent bfdfc8d commit 1fdf33b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

os/mkosi/tests/acceptance.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ grep -q 'AmdSev/AmdSevX64.dsc' "$D/scripts/build-ovmf.sh"
2727
grep -q 'objcopy --strip-debug' "$D/build.sh"
2828
grep -q 'depmod -b.*KERNEL_VERSION-dstack' "$D/build.sh"
2929
grep -q 'prune-rootfs.sh' "$D/build.sh"
30-
! grep -q '^[[:space:]]*ovmf$' "$D/mkosi.conf"
30+
if grep -q '^[[:space:]]*ovmf$' "$D/mkosi.conf"; then
31+
echo 'distribution OVMF must not be installed in the guest rootfs' >&2
32+
exit 1
33+
fi
3134
grep -q '"firmware_sev":"files/ovmf-sev.fd"' "$D/scripts/make-release-artifacts.sh"
3235
grep -q 'measurement.snp.cbor' "$D/tests/check-output.sh"
3336
grep -q '0001-validate-ocsp-response-freshness.patch' "$D/scripts/build-nvattest.sh"

0 commit comments

Comments
 (0)