mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 09:32:14 +02:00
wic: Create a logical partition only when it is really mandatory
Don't worth bother with logical partition on MBR partition type (aka msdos) if disk image generated by wic should have 4 partitions. (From OE-Core rev: 36a558fbdc96094626e7de1a3510691e30885368) Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu> 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
839d9aaafd
commit
8c1c43b790
@@ -201,9 +201,10 @@ class Image():
|
||||
part['num'] = 0
|
||||
|
||||
if disk['ptable_format'] == "msdos":
|
||||
if disk['realpart'] > 3:
|
||||
part['type'] = 'logical'
|
||||
part['num'] = disk['realpart'] + 1
|
||||
if len(self.partitions) > 4:
|
||||
if disk['realpart'] > 3:
|
||||
part['type'] = 'logical'
|
||||
part['num'] = disk['realpart'] + 1
|
||||
|
||||
disk['partitions'].append(num)
|
||||
msger.debug("Assigned %s to %s%d, sectors range %d-%d size %d "
|
||||
|
||||
Reference in New Issue
Block a user