aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Cordero <gentoo.catalyst@0xdc.io>2022-04-21 07:08:24 +0000
committerMatt Turner <mattst88@gentoo.org>2022-05-13 13:42:15 -0400
commit214bb3d849d5bf7ce2314aab1858ed6e72b28108 (patch)
tree0a4e66877e0cb61f94f36fff271750fb24e49d01 /catalyst
parentcatalyst/stage4: fix handling of groups, users and keys (diff)
downloadcatalyst-214bb3d849d5bf7ce2314aab1858ed6e72b28108.tar.gz
catalyst-214bb3d849d5bf7ce2314aab1858ed6e72b28108.tar.bz2
catalyst-214bb3d849d5bf7ce2314aab1858ed6e72b28108.zip
catalyst/stage4: don't run split on a list
"groups" has been normalised into a list and does not have a split() method. Fixes: 5be6069b ("catalyst: support 3 new options") Signed-off-by: Daniel Cordero <gentoo.catalyst@0xdc.io> Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'catalyst')
-rw-r--r--catalyst/base/stagebase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 1d71c59d..7e6b9e32 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -931,7 +931,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
env=self.env)
def groups(self):
- for x in self.settings["groups"].split():
+ for x in self.settings["groups"]:
log.notice("Creating group: '%s'", x)
cmd(["groupadd", "-R", self.settings['chroot_path'], x], env=self.env)