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)
Sun, Sep 6, 2:35 PM
Unknown Object (File)
Sun, Sep 6, 1:22 AM
Unknown Object (File)
Sun, Sep 6, 12:16 AM
Unknown Object (File)
Sat, Sep 5, 3:40 PM
Unknown Object (File)
Thu, Sep 3, 6:12 PM
Unknown Object (File)
Thu, Sep 3, 5:30 PM
Unknown Object (File)
Thu, Sep 3, 6:13 AM
Unknown Object (File)
Tue, Sep 1, 12:49 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