build: correct disk image file creation, it was one byte too large master
authorJames Perkins <james.perkins@linuxfoundation.org>
Mon, 13 Sep 2010 03:12:33 +0000 (20:12 -0700)
committerJames Perkins <james.perkins@linuxfoundation.org>
Wed, 22 Sep 2010 22:08:00 +0000 (15:08 -0700)
commitdf31375cf04af94ac45b4fc116eaa8060e33e607
tree8c1691d3002e40f0c93dde9e77c82f9479870c09
parentdf710c7f79c802c87b9ce8c3650efcc546d9b925
build: correct disk image file creation, it was one byte too large

"dd if=/dev/zero bs=1 count=1 of=<diskimage> seek=<sizeinMB>*1024*1024"
resulted in a file that is desired size + 1 byte.  Subtract one byte
from the seek arithmetic, so that the write of 1 byte makes the disk
disk image exactly the right size. In the future it might be preferable
to use "qemu-image create -f raw <diskimage>" to do this operation.

Signed-off-by: James Perkins <james.perkins@linuxfoundation.org>
build