Page MenuHomeFreeBSD

bsdinstall: use fat32 for ZFS
ClosedPublic

Authored by emaste on Nov 8 2025, 3:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 14, 11:22 AM
Unknown Object (File)
Sun, Jan 11, 11:46 PM
Unknown Object (File)
Sat, Jan 10, 4:34 PM
Unknown Object (File)
Sat, Jan 10, 3:57 PM
Unknown Object (File)
Sat, Jan 10, 3:15 PM
Unknown Object (File)
Sat, Jan 10, 4:49 AM
Unknown Object (File)
Mon, Jan 5, 11:45 AM
Unknown Object (File)
Thu, Jan 1, 1:00 PM
Subscribers

Details

Summary

EFI implementations must support all of fat12, fat16, and fat32, but other operating systems typically use fat32 for the EFI system partition. The UFS install path also uses fat32. Follow suit in ZFS.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.Nov 8 2025, 3:23 PM

I would, however, like to see this super ugly construct die in a fire. It's way way way over-engineered with little good effect. There's 4 layers of indirections for logging and that's 3 too many.

This revision is now accepted and ready to land.Nov 8 2025, 5:03 PM

Use -c 1 consistent with the UFS config.

This revision now requires review to proceed.Nov 10 2025, 2:14 PM

Fixes: 0b7472b3d8d2 ("Mount the EFI system partition (ESP) on newly-installed systems.")

Prior to that commit we newfs'd the ESP with newfs_msdos -F 32 -c 1 -L EFISYS "/dev/$esp" > /dev/null 2>&1

I'm a little nervous about -c 1, but it should be adequate across a reasonable range of partition sizes.

This revision is now accepted and ready to land.Nov 11 2025, 5:45 PM