mirror of
https://git.yoctoproject.org/poky
synced 2026-02-27 03:49:41 +01:00
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] (From OE-Core rev: 5689139b3cd862e2df49f6b21171f513e8a46c60) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bfd831a869
commit
8fb8a21b7d
@@ -313,7 +313,7 @@ class PartitionedImage():
|
||||
part.realnum = 0
|
||||
else:
|
||||
realnum += 1
|
||||
if self.ptable_format == 'msdos' and realnum > 3:
|
||||
if self.ptable_format == 'msdos' and realnum > 3 and len(partitions) > 4:
|
||||
part.realnum = realnum + 1
|
||||
continue
|
||||
part.realnum = realnum
|
||||
|
||||
Reference in New Issue
Block a user