From 55acff0d21042e5f45ea769178962b5aee90f285 Mon Sep 17 00:00:00 2001 From: philip Date: Thu, 14 Jul 2005 12:20:02 +0000 Subject: [PATCH] Fix a minor buglet making the code match the comment. Fractional cylinders confuse fdisk and break the NanoBSD build. This is an MT5/6 candidate. MFC after: 3 days --- tools/tools/nanobsd/i386.diskimage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)