]> code.ossystems Code Review - openembedded-core.git/commit
init-install: Clean up partition alignment
authorDarren Hart <dvhart@linux.intel.com>
Tue, 3 Jul 2012 23:21:57 +0000 (16:21 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jul 2012 15:58:17 +0000 (16:58 +0100)
commit8aac6ecc5194c734dfd3d677017ab3ea045b2339
tree83c4c7a8083052aa5d6337e225e619804fe92c6d
parent4436639eed57d818992596d6f0f7b53d3bbd4800
init-install: Clean up partition alignment

The current partitioning scheme leaves a 1MB gap between all the
generated partitions by adding a 1 to the end of the last partition to
use as the start of the next. parted is smart enough to not overlap
start and end positions of the same value. This avoids the 1 MB gaps.

Rather than pad the disk with 1MB in the beginning and cut it off at the
MB boundary on the end, we can use 0% and 100% to allow parted to do the
required math and use as much of the disk as possible.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
meta/recipes-core/initrdscripts/files/init-install.sh