diff options
author | Kristian Klausen <kristian@klausen.dk> | 2021-09-03 15:52:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-06 09:49:50 +0100 |
commit | 73384ac936041e0122e8911d6c82a398df52b85b (patch) | |
tree | 3ee18606b6afff7bd70df850dd73619909e73ecf /scripts/wic | |
parent | f97a29af632a4584b7051162b2403756cd869c7c (diff) | |
download | poky-73384ac936041e0122e8911d6c82a398df52b85b.tar.gz |
wic: Add extra-space argument
This allows extra space to be added after the last partition and is
especially useful when free space is needed for ex: adding partitions on
first boot with ex: systemd-repart[1] and the image is tested in QEMU.
[1] https://www.freedesktop.org/software/systemd/man/systemd-repart.html
(From OE-Core rev: f81b188bcf5aa18746fd622eb7b5c0dcb0b5c93d)
Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic index a741aed364..57197c2048 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -346,6 +346,8 @@ def wic_init_parser_create(subparser): | |||
346 | default=False, help="output debug information") | 346 | default=False, help="output debug information") |
347 | subparser.add_argument("-i", "--imager", dest="imager", | 347 | subparser.add_argument("-i", "--imager", dest="imager", |
348 | default="direct", help="the wic imager plugin") | 348 | default="direct", help="the wic imager plugin") |
349 | subparser.add_argument("--extra-space", type=int, dest="extra_space", | ||
350 | default=0, help="additional free disk space to add to the image") | ||
349 | return | 351 | return |
350 | 352 | ||
351 | 353 | ||