summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-06-09 12:16:31 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-06 14:15:22 +0100
commitc52e34c2bfd20df3448d8b8cfe938935905c2bf0 (patch)
tree93c014185c8af01d018ef3f8ce8e8bc978f99f59 /scripts
parent343a7e2c61f97507d0a80ea54fb7457e28ce77e0 (diff)
downloadpoky-c52e34c2bfd20df3448d8b8cfe938935905c2bf0.tar.gz
wic: Fix --extra-space argument handling
467f84e12b ("wic: Add --offset argument for partitions") broke the --extra-space argument handling in wic. Fix the option and add a unit test for the argument. (From OE-Core rev: 62a7a10c31bcf133cbd99d4de928f15a30e45ab1) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 87722a92c18f94917c8f70afc8cd0763462a5c25) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/ksparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index f32315c631..ac6f427564 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -144,7 +144,7 @@ class KickStart():
144 part.add_argument('--offset', type=sizetype("K")) 144 part.add_argument('--offset', type=sizetype("K"))
145 part.add_argument('--exclude-path', nargs='+') 145 part.add_argument('--exclude-path', nargs='+')
146 part.add_argument('--include-path', nargs='+') 146 part.add_argument('--include-path', nargs='+')
147 part.add_argument("--extra-space", type=sizetype) 147 part.add_argument("--extra-space", type=sizetype("M"))
148 part.add_argument('--fsoptions', dest='fsopts') 148 part.add_argument('--fsoptions', dest='fsopts')
149 part.add_argument('--fstype', default='vfat', 149 part.add_argument('--fstype', default='vfat',
150 choices=('ext2', 'ext3', 'ext4', 'btrfs', 150 choices=('ext2', 'ext3', 'ext4', 'btrfs',