Commit
8c1c43b7901a9fcd8b279eb4250b08157ad345b7 `wic: Create a logical partition
only when it is really mandatory` did not account for partitions that are not
present in partition table.
Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
part['num'] = 0
if disk['ptable_format'] == "msdos":
- if len(self.partitions) > 4:
+ # only count the partitions that are in partition table
+ if len([p for p in self.partitions if not p['no_table']]) > 4:
if disk['realpart'] > 3:
part['type'] = 'logical'
part['num'] = disk['realpart'] + 1