]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix calculation of partition number
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 17 Jul 2017 07:04:04 +0000 (10:04 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 11:36:35 +0000 (12:36 +0100)
commit5689139b3cd862e2df49f6b21171f513e8a46c60
tree896b0faddf29a1962f203cdbf9e99d69e8fba8ab
parent27202954ce7abda22f7e81c2d72a80f0fa7006d8
wic: fix calculation of partition number

Total number of partitions should be taken into account when calculating
real partition number for msdos partition table. The number can be
different for the 4th partition: it can be 4 if there are 4 partitions in
the table and 5 if there are more than 4 partitions in the table. In the
latter case number 4 is occupied by extended partition.

[YOCTO #11790]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/plugins/imager/direct.py