diff --git a/tools/tools/nanobsd/i386.diskimage b/tools/tools/nanobsd/i386.diskimage index 01e1b5cf77ce..678db72d02fc 100644 --- a/tools/tools/nanobsd/i386.diskimage +++ b/tools/tools/nanobsd/i386.diskimage @@ -63,7 +63,7 @@ echo ${SECTS} ${SC} ${HD} ${DATASIZE} | awk ' # size of cylinder in sectors cs = $2 * $3 # number of full cylinders - cyl = $1 / cs + cyl = int ($1 / cs) print "g c" cyl " h" $3 " s" $2 # Size of data/conf patition, round up to full cylinder dsl = int (($4 + cs - 1) / cs)