diff options
| author | Jose Luis Duran <jlduran@FreeBSD.org> | 2026-05-27 00:23:46 +0000 |
|---|---|---|
| committer | Jose Luis Duran <jlduran@FreeBSD.org> | 2026-05-27 00:23:46 +0000 |
| commit | c579927ac591ffcf36f4cd06444d167ba467ec8d (patch) | |
| tree | 89c0cc83ea820d0a707a7230cafa909940d4bdb0 | |
| parent | ca2d4026c3f2bb8eeab888cf50f2c2e3914ab3e5 (diff) | |
nanobsd: Use makefs -R flag to honor rounded sizes
Switch from the min/max size flag (-s) to the round-up flag (-R) when
invoking makefs(8).
Because the partition sizes passed to nano_makefs have already been
rounded up by calculate_partitioning(), using -s can cause makefs to try
to perform sizing adjustments that usually result in failures.
Reviewed by: imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D57225
| -rwxr-xr-x | tools/tools/nanobsd/defaults.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh index adeb83365050..6f55b28eb77f 100755 --- a/tools/tools/nanobsd/defaults.sh +++ b/tools/tools/nanobsd/defaults.sh @@ -719,7 +719,7 @@ nano_makefs() { dir=$5 makefs ${options} -F "${metalog}" -N "${NANO_WORLDDIR}/etc" \ - -s "${size}b" -T "${NANO_TIMESTAMP}" -t ffs "${image}" "${dir}" + -R "${size}b" -T "${NANO_TIMESTAMP}" -t ffs "${image}" "${dir}" } # Convenient spot to work around any umount issues that your build environment |
