wic: Fix --overhead-factor and --extra-space checks

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.

(From OE-Core rev: 46c24b67d4e9d28e7216a7394090d807cf879fa7)

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Diego Sueiro
2025-08-20 12:24:55 +01:00
committed by Richard Purdie
parent e29b37130f
commit fb4ebd6053

View 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