[elbe-devel] [PATCH 2/6] elbepack: finetuning: accept groupadd system=true

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon May 27 14:12:15 CEST 2024


The other boolean xml attributes use a lowercase "true".
Align with them. To keep backwards compat, also continue accepting "True".

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/finetuning.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/finetuning.py b/elbepack/finetuning.py
index d57ae736b12f..85cdc48d3ec6 100644
--- a/elbepack/finetuning.py
+++ b/elbepack/finetuning.py
@@ -232,7 +232,7 @@ class AddGroupAction(FinetuningAction):
             options = ['-f']
             if 'gid' in att:
                 options.extend(['-g', att['gid']])
-            if 'system' in att and att['system'] == 'True':
+            if 'system' in att and att['system'] in {'True', 'true'}:
                 options.append('r')
             chroot(target.path, ['/usr/sbin/groupadd', *options, self.node.et.text])
 

-- 
2.45.1



More information about the elbe-devel mailing list