poky/scripts/lib
Pierre-Loup GOSSE 21d98bd960 wic: add --extra-partition-space option to set unused space
By default, the content of the partition is filled by the filesystem
without leaving any unused free space. The --extra-space flag adds
extra space to the filesystem size, not to the partition.

Unused free space after the filesystem can be useful for some cases,
such as encrypting a partition at runtime.
With --extra-partition-space 32M, we ensure that the last 32M of the
partition is unused: this space does not contain filesystem data and
can store the LUKS2 header.

The implementation sets a difference between the partition and
filesystem size:
  - With --fixed-size, the extra part space is removed from the
    filesystem size.
  - Otherwise (with or without --size flag), the extra part space is
    added to the partition size.

(From OE-Core rev: 22fd1702aedf40257aa53963b62b5ef1bbd2818a)

Signed-off-by: Pierre-Loup GOSSE <pierre-loup.gosse@smile.fr>

CC: Alexander Kanavin <alex.kanavin@gmail.com>
CC: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-09-08 18:02:39 +01:00
..
build_perf buildperf: Tweak tooltip positioning for usability 2025-03-28 22:14:14 +00:00
checklayer yocto-check-layer: expect success for test_patches_upstream_status 2025-04-10 11:05:34 +01:00
devtool devtool: fix upgrade for recipes with git submodules 2025-08-14 10:31:10 +01:00
recipetool recipetool/create_go: Tidy up a bit 2025-09-08 18:02:39 +01:00
resulttool resulttool/store: Fix permissions of logarchive 2024-11-26 13:40:30 +00:00
wic wic: add --extra-partition-space option to set unused space 2025-09-08 18:02:39 +01:00
argparse_oe.py scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00
buildstats.py scripts/lib/buildstats: handle top-level build_stats not being complete 2023-03-25 09:39:28 +00:00
scriptpath.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
scriptutils.py scripts/scriptutils: silence warning about S not existing in emptysrc 2025-06-05 11:02:22 +01:00