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:56 +0000 (20:35 +0100)
commit6b8c9def1647f9ecf8697e91fc23c162b33c3bc5
treebb725efe5f81172b2293448cdc5a5bd0497833d4
parentee893797fa4d7a8c0cf1ad9e84fdb180cba72048
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.

(From OE-Core rev: 99bee4cb489800d74dea4d2158ff834413685f04)

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