From 46c24b67d4e9d28e7216a7394090d807cf879fa7 Mon Sep 17 00:00:00 2001 From: Diego Sueiro Date: Wed, 20 Aug 2025 12:24:55 +0100 Subject: [PATCH] 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. Signed-off-by: Diego Sueiro Signed-off-by: Mathieu Dubois-Briand --- scripts/lib/wic/ksparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 7ef3dc83ddc..596b6e8e7e9 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py @@ -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 -- 2.47.3