[elbe-devel] [PATCH 3/6] elbepack: finetuning: fix groupadd finetuning action
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue May 28 10:26:23 CEST 2024
The "system" attribute is a xsd:boolean, for which "True" can never
happen. Use the helper to properly parse the boolean attribute.
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 986b64dc11ce..d19e2c6ff215 100644
--- a/elbepack/finetuning.py
+++ b/elbepack/finetuning.py
@@ -231,7 +231,7 @@ class AddGroupAction(FinetuningAction):
options = ['-f']
if 'gid' in att:
options.extend(['-g', att['gid']])
- if 'system' in att and att['system'] == 'True':
+ if self.node.bool_attr('system'):
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