poky/scripts/lib/wic
Andrew Geissler e9e5a7910e filemap.py: enforce maximum of 4kb block size
The logic in this script validates that the length of data sections are
evenly divisible by the block size. On most systems the block size is
4KB and all is good. Some systems though, such as ppc64le, have a block
size larger then 4KB. For example on a POWER9 based ppc64le system, the
block size is 64KB.

This results in this script failing with errors like this when building
wic images:
|440, in _do_get_mapped_ranges
|     assert extent_len % self.block_size == 0
|            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| AssertionError

In this case the data section size was 268KB and the block size was
64KB, resulting in the above assert failure.

Resolves https://bugzilla.yoctoproject.org/show_bug.cgi?id=15075

(From OE-Core rev: 1e23b803af6991fc20e4a4e88a0ef0541399e722)

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-27 15:44:02 +01:00
..
canned-wks base: add support for loongarch64 2023-02-04 17:02:10 +00:00
plugins wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel 2023-02-26 11:49:00 +00:00
__init__.py wic: python2 -> python3 2019-06-30 22:40:52 +01:00
engine.py wic: use shutil.which 2021-11-21 11:05:02 +00:00
filemap.py filemap.py: enforce maximum of 4kb block size 2023-03-27 15:44:02 +01:00
help.py wic: added fspassno parameter to partition 2022-05-16 23:19:18 +01:00
ksparser.py wic: add 'none' fstype for custom image 2022-08-12 19:22:04 +01:00
misc.py wic: add target tools to PATH when executing native commands 2022-08-02 11:29:59 +01:00
partition.py wic: Fix usage of fstype=none in wic 2023-02-15 10:21:34 +00:00
pluginbase.py scripts: Update to use exec_module() instead of load_module() 2022-01-05 17:18:16 +00:00