]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix extended/logical partition layout
authorMaciej Borzecki <maciej.borzecki@open-rnd.pl>
Fri, 9 Jan 2015 13:24:02 +0000 (14:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Feb 2015 13:30:56 +0000 (13:30 +0000)
commita8b85f7878726503dbfa2e9ea86bd6fd961bf03b
treeffe86095e73b1860f1499544d8ec9d2cce84af28
parentab126dcca85d6a335212b07a1ca37d5e045a59cf
wic: fix extended/logical partition layout

The patch fixes an issue in laying out extended and logical partitions
by wic. The original code produced disk images in which the size 3rd
partition as described in MBR was incorrect. Depending on the type of
file system used for that partition and size of the partition, it would
be impossible to mount the partition correctly. For instance, kickstart
file in which the 3rd partition had size of 1GB and used ext4 fs, would
result in an image with an umountable partition. The root cause is
reservation of sectors for EBR through stealing of last sector from the
last primary partition.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/utils/partitionedfs.py