]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix vfat partition sector count only if needed
authorMaciej Borzecki <maciej.borzecki@open-rnd.pl>
Mon, 22 Sep 2014 11:35:15 +0000 (13:35 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Sep 2014 19:35:41 +0000 (20:35 +0100)
commit99bee4cb489800d74dea4d2158ff834413685f04
tree687b3c90b4bbf99b7bb67dd1aabb26703b509891
parent44abf447f8e4ed11cbbe53a4fb0ecf10a20f0f9e
wic: fix vfat partition sector count only if needed

VFAT rootfs partitions sector count would get updated always even if
there is no need. Since parition size in wic is expressed in MB, any
sub MB change will cause the generated partition image to be larger
than allocated space within the disk image. Fortunately, partitions
sized in MB will most of the time have a proper sector count.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/kickstart/custom_commands/partition.py