Gentoo Archives: gentoo-catalyst

From: Daniel Cordero <gentoo.catalyst@××××.io>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 4/4] stage4/groups: improve log message
Date: Thu, 21 Apr 2022 07:09:03
Message-Id: 20220421070826.92638-4-gentoo.catalyst@0xdc.io
In Reply to: [gentoo-catalyst] [PATCH 1/4] stage4: fix handling of groups, users and keys by Daniel Cordero
1 When creating a user with no additional groups, don't print a misleading message
2 saying the user will be created with an equals sign in the username.
3 ---
4 catalyst/base/stagebase.py | 2 +-
5 1 file changed, 1 insertion(+), 1 deletion(-)
6
7 diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
8 index d4875491..9814ebcc 100644
9 --- a/catalyst/base/stagebase.py
10 +++ b/catalyst/base/stagebase.py
11 @@ -947,7 +947,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
12 uacmd = ["useradd", "-R", self.settings['chroot_path'], "-m", x]
13 if grp != '':
14 uacmd = ["useradd", "-R", self.settings['chroot_path'], "-m", "-G", grp, usr]
15 - log.notice("Creating user: '%s'", f"{usr}={grp}")
16 + log.notice("Creating user: '%s' in group(s): %s", usr, grp)
17 cmd(uacmd, env=self.env)
18
19 def ssh_public_keys(self):
20 --
21 2.35.1

Replies

Subject Author
Re: [gentoo-catalyst] [PATCH 4/4] stage4/groups: improve log message Daniel Cordero <gentoo.catalyst@××××.io>
[gentoo-catalyst] [PATCH v2 4/4] stage4/users: improve log message Daniel Cordero <gentoo.catalyst@××××.io>