]> 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)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 18 Mar 2015 04:09:06 +0000 (01:09 -0300)
commit9445c3d8718d6f0e3796bf34962a8fa10c810e33
treea2d17e536f7b2a8f929526b0a6e7e9aa262f7091
parent833cd5ad333e726da0b7c39ccf4d5de7925fcb67
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.

Change-Id: I3d4e0dcc5981f63a8ae487047e53da26853286bb
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
scripts/lib/wic/utils/partitionedfs.py