Page MenuHomeFreeBSD

nanobsd: Use rounded sizes for cfg and data slices
ClosedPublic

Authored by jlduran on May 24 2026, 10:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 16, 9:05 AM
Unknown Object (File)
Wed, Jul 15, 7:23 AM
Unknown Object (File)
Wed, Jul 15, 7:23 AM
Unknown Object (File)
Mon, Jul 6, 10:20 PM
Unknown Object (File)
Sun, Jun 21, 4:10 PM
Unknown Object (File)
Sun, Jun 21, 2:37 PM
Unknown Object (File)
Jun 14 2026, 7:23 AM
Unknown Object (File)
Jun 4 2026, 6:39 PM
Subscribers

Details

Summary

Use the calculated (rounded up) cfg and data sizes from the
_.partitioning file, instead of consuming them directly from the global
variables. We obtain the size of the cfg and data slices by explicitly
searching for index 3 and 4 respectively in the _.partitioning file.

This ensures that the final image has the rounded-up sizes, and not the
raw sizes.

Diff Detail

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