]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wic: Fix --overhead-factor and --extra-space checks
authorDiego Sueiro <diego.sueiro@arm.com>
Wed, 20 Aug 2025 11:24:55 +0000 (12:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Aug 2025 16:46:38 +0000 (17:46 +0100)
If --overhead-factor and --extra-space are passed with =FOO the
check fails. Fix this by checking parsed.overhead_factor and
parsed.extra_space instead.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
scripts/lib/wic/ksparser.py

index 7ef3dc83ddcef58a9a2436c5e58663ebde99c25d..596b6e8e7e9c161e3c9e86be1d4e03ba846df140 100644 (file)
@@ -275,9 +275,9 @@ class KickStart():
                             # --fixed-size iff given option was not used
                             # (again, one cannot tell if option was passed but
                             # with value equal to 0)
-                            if '--overhead-factor' not in line_args:
+                            if not parsed.overhead_factor:
                                 parsed.overhead_factor = self.DEFAULT_OVERHEAD_FACTOR
-                            if '--extra-space' not in line_args:
+                            if not parsed.extra_space:
                                 parsed.extra_space = self.DEFAULT_EXTRA_SPACE
 
                         self.partnum += 1