]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cirrus-CI: use makefs if root size exceeds QEMU's virtual FAT limit
authorEd Maste <emaste@FreeBSD.org>
Mon, 13 Feb 2023 17:39:39 +0000 (12:39 -0500)
committerEd Maste <emaste@FreeBSD.org>
Thu, 2 Mar 2023 14:11:53 +0000 (09:11 -0500)
commite8f143cc4c5811a9ecbd3f2b1df02dd1ea2dfa94
treeb7908a4b356a11896c7c38b681cedee05cf77f88
parentf36ca798c42960383e0ff9612e56eb20c796cf04
Cirrus-CI: use makefs if root size exceeds QEMU's virtual FAT limit

We use QEMU's virtual FAT support to avoid having to create a disk
image because it is much faster, but it has a limit of about 500MB.
Artifacts produced by the GCC 12 CI job exceeded this size.

Add support for creating a FAT partition image and MBR-partitioned disk
image and use it when the file system is too large for QEMU.

In one run the Cirrus-CI LLVM test task took 1m33s using QEMU's virtual
FAT while the GCC task took 6m48s using makefs+mkimg.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38589

(cherry picked from commit 7b0593fdcbbb9c73d282fc0024d844c044423b31)
tools/boot/ci-qemu-test.sh