[elbe-devel] [PATCH 1/3] elbepack: hdimg: fix UBI creation command

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Dec 16 13:35:35 CET 2024


With the switch to non-shell execution the additional arguments need to
be in a list.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/hdimg.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index 9c8f08b25c240e0292b4a1ce1ae435dfe2746514..e4dbe5c23c43bf95d0558cafe94ed32344942a41 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -108,12 +108,12 @@ def build_image_mtd(mtd, target):
     fp.close()
 
     if ubivg.has('subpagesize'):
-        subp = '-s ' + ubivg.text('subpagesize')
+        subp = ['-s', ubivg.text('subpagesize')]
     else:
-        subp = ''
+        subp = []
 
     try:
-        do(['ubinize', subp,
+        do(['ubinize', *subp,
             '-o', os.path.join(target, mtd.text('name')),
             '-p', ubivg.text('physicaleraseblocksize'),
             '-m', ubivg.text('miniosize'),

-- 
2.47.1



More information about the elbe-devel mailing list