diff options
author | Maciej Borzecki <maciej.borzecki@open-rnd.pl> | 2014-08-19 15:14:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 09:25:04 +0100 |
commit | c3251d4191fb0b7c3477a3579e542729598f6aad (patch) | |
tree | 286c454eef2d1e0e57636553edd30fdcb9035938 /scripts/lib/wic | |
parent | 23a533908355b7bb37ce34b073ac91aa20c5776d (diff) | |
download | openembedded-core-c3251d4191fb0b7c3477a3579e542729598f6aad.tar.gz openembedded-core-c3251d4191fb0b7c3477a3579e542729598f6aad.tar.bz2 openembedded-core-c3251d4191fb0b7c3477a3579e542729598f6aad.zip |
wic: do not steal sectors from the first partition
In order to make up for space loss due to overhead located before the
first partition, same amount of bytes was extracted from the first
partition's size. This leads to unexpected change of first partition's
size, and is not matched by similar adjustment at the time the partition
image is generated. Thus it is possible that the first partition may
partially overwrite contents of the following partition, as the
partition image is larger than the allocated space.
This is also problematic on certain platforms such as OMAP, where the
first partition is required for have an even number of
sectors (typically already expressed by --size in kickstart
file). Subtracting an odd number of sectors lost for overhead, leads to
an odd number of sectors assigned for partition, preventing the board,
such as beaglebone, from booting correctly.
Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 76aa42135b..36ef4063d1 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -155,9 +155,6 @@ class Image: # Skip one sector required for the partitioning scheme overhead d['offset'] += overhead - # Steal few sectors from the first partition to offset for the - # partitioning overhead - p['size'] -= overhead if p['align']: # If not first partition and we do have alignment set we need |