HomeFreeBSD

nanobsd: Add a nano_makefs function

Description

nanobsd: Add a nano_makefs function

Add a NANO_MAKEFS global variable with options equivalent to NANO_NEWFS
to be used with a nano_makefs function for creating images.

Also add a function that adjusts the code size calculation, so makefs -s
won't error about the minimum rounded size. Ideally this shim should be
removed, therefore the suspicious _xxx prefix.

Initially not wired.

Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D48789

Details

Provenance
jlduranAuthored on Jan 17 2026, 6:08 PM
Reviewer
imp
Differential Revision
D48789: nanobsd: Add a nano_makefs function
Parents
rG4f141f5ef4a5: nanobsd: Switch the / partition in fstab
Branches
Unknown
Tags
Unknown