summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorKristian Klausen <kristian@klausen.dk>2021-09-03 15:52:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-04 15:05:48 +0100
commitf81b188bcf5aa18746fd622eb7b5c0dcb0b5c93d (patch)
treef98273e2271223bcff7acce42c46888088035e4c /scripts/wic
parent35d699c479b6ce6acafbf75fb003618aaad094d7 (diff)
downloadopenembedded-core-contrib-f81b188bcf5aa18746fd622eb7b5c0dcb0b5c93d.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 Signed-off-by: Kristian Klausen <kristian@klausen.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic2
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):
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