HomeFreeBSD

Cirrus-CI: use makefs if root size exceeds QEMU's virtual FAT limit

Description

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)

Details

Provenance
emasteAuthored on Feb 13 2023, 5:39 PM
Reviewer
imp
Differential Revision
D38589: Cirrus-CI: use makefs if size exceeds QEMU's virtual FAT limit
Parents
rGf36ca798c429: Remove an extra argument to SYSCTL_FOREACH
Branches
Unknown
Tags
Unknown