From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4553615808D for ; Thu, 21 Apr 2022 07:09:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 702F9E0901; Thu, 21 Apr 2022 07:09:02 +0000 (UTC) Received: from rs234.mailgun.us (rs234.mailgun.us [209.61.151.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49A5AE0901 for ; Thu, 21 Apr 2022 07:09:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=0xdc.io; q=dns/txt; s=smtp; t=1650524942; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Subject: To: To: From: From: Sender: Sender; bh=hLHMbX60DZ4uZAIpTNGpa/k5J66vaXCbAIm1sx+nzo8=; b=cB6HxAlkHehHd8pKVlpmU2QZiA0BtltPS+pado6SeU03N4+RPaqS+of9BB+/QKkbgMgMG/6w JE8JfYLw497NWaGjZ7nwl4Dg0rQ0kj+apBSmPKxcIIa6OVnMz3+EAT/UT+yVQ32GqzZl2zck jdswWhXzT96avQWWUuqpym9+gDc= X-Mailgun-Sending-Ip: 209.61.151.234 X-Mailgun-Sid: WyJiZmIxMyIsICJnZW50b28tY2F0YWx5c3RAbGlzdHMuZ2VudG9vLm9yZyIsICJmNjc0NGUiXQ== Received: from mail.0xdc.io (mail.0xdc.io [54.37.0.172]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 6261030e225c469082b9587d (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 21 Apr 2022 07:09:02 GMT Sender: gentoo.catalyst@0xdc.io Received: from pulsar (5.b.0.d.c.4.e.f.f.f.1.0.5.8.8.4.0.a.4.7.9.0.c.0.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:c09:74a0:4885:1ff:fe4c:d0b5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.0xdc.io (Postfix) with ESMTPSA id CBDDC102418 for ; Thu, 21 Apr 2022 07:10:51 +0000 (UTC) From: Daniel Cordero To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 4/4] stage4/groups: improve log message Date: Thu, 21 Apr 2022 07:08:26 +0000 Message-Id: <20220421070826.92638-4-gentoo.catalyst@0xdc.io> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220421070826.92638-1-gentoo.catalyst@0xdc.io> References: <20220421070826.92638-1-gentoo.catalyst@0xdc.io> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: de332122-7231-4ee2-8466-6a7fbc29516b X-Archives-Hash: 6e61b94ac39d924ec00d4de2ad34cfd9 When creating a user with no additional groups, don't print a misleading message saying the user will be created with an equals sign in the username. --- catalyst/base/stagebase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index d4875491..9814ebcc 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -947,7 +947,7 @@ class StageBase(TargetBase, ClearBase, GenBase): uacmd = ["useradd", "-R", self.settings['chroot_path'], "-m", x] if grp != '': uacmd = ["useradd", "-R", self.settings['chroot_path'], "-m", "-G", grp, usr] - log.notice("Creating user: '%s'", f"{usr}={grp}") + log.notice("Creating user: '%s' in group(s): %s", usr, grp) cmd(uacmd, env=self.env) def ssh_public_keys(self): -- 2.35.1