From 73384ac936041e0122e8911d6c82a398df52b85b Mon Sep 17 00:00:00 2001 From: Kristian Klausen Date: Fri, 3 Sep 2021 15:52:53 +0200 Subject: 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 Signed-off-by: Richard Purdie --- scripts/wic | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/wic') 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): default=False, help="output debug information") subparser.add_argument("-i", "--imager", dest="imager", default="direct", help="the wic imager plugin") + subparser.add_argument("--extra-space", type=int, dest="extra_space", + default=0, help="additional free disk space to add to the image") return -- cgit v1.2.3-54-g00ecf