mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
nanobsd: Fix code image size formatting
mkimg(8) parses sizes using expand_number(3). It is an error to use "b" as a suffix. This is the result of a confusion with makefs(8), which uses NetBSD's strsuftoll(3). Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D57224
This commit is contained in:
@@ -326,7 +326,7 @@ _create_diskimage() {
|
||||
altroot="-p freebsd:=${NANO_OBJ}/_.altroot.image:+$(( NANO_SECTS * 512 ))"
|
||||
rm -f "${NANO_OBJ}/_.altroot.part"
|
||||
else
|
||||
altroot="-p freebsd::${CODE_SIZE}b:+$(( NANO_SECTS * 512 ))"
|
||||
altroot="-p freebsd::$(( CODE_SIZE * 512 )):+$(( NANO_SECTS * 512 ))"
|
||||
fi
|
||||
else
|
||||
altroot="-p-"
|
||||
|
||||
Reference in New Issue
Block a user