All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Avoid unnecessary useradd warnings
@ 2015-10-20 17:14 Peter Kjellerstedt
  2015-10-20 17:14 ` [PATCH 1/1] useradd_base.bbclass: Do not warn without a reason Peter Kjellerstedt
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Kjellerstedt @ 2015-10-20 17:14 UTC (permalink / raw)
  To: openembedded-core

This avoids unnecessary warnings when using GROUPMEMS_PARAM, or when
using userdel or groupdel in EXTRA_USERS_PARAMS. A similar change was
introduced for GROUPADD_PARAM and USERADD_PARAM in
c0da4270c76375a7a8cbcc09319fe4570ebbc5bd.

//Peter

The following changes since commit 8578bc17b54da97d42b257b3c8f398ac52b91a9f:

  libc-package: Fix localedef multilib dependency issues (2015-10-20 10:12:01 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/avoid_useradd_warnings
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/avoid_useradd_warnings

Peter Kjellerstedt (1):
  useradd_base.bbclass: Do not warn without a reason

 meta/classes/useradd_base.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.1.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] useradd_base.bbclass: Do not warn without a reason
  2015-10-20 17:14 [PATCH 0/1] Avoid unnecessary useradd warnings Peter Kjellerstedt
@ 2015-10-20 17:14 ` Peter Kjellerstedt
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Kjellerstedt @ 2015-10-20 17:14 UTC (permalink / raw)
  To: openembedded-core

In c0da4270c76375a7a8cbcc09319fe4570ebbc5bd two bbwarn were changed to
bbnote for the case where an added user or group already exists. The
same should have been done for groupmems, groupdel and userdel as well
since the warnings that are currently generated are superflouous.

The two remaining similar bbwarn for groupmod and usermod are left as
is since there they actually make sense.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes/useradd_base.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/classes/useradd_base.bbclass b/meta/classes/useradd_base.bbclass
index 802f3a1..ab3cd35 100644
--- a/meta/classes/useradd_base.bbclass
+++ b/meta/classes/useradd_base.bbclass
@@ -104,7 +104,7 @@ perform_groupmems () {
 			sleep $count
 		done
 	else
-		bbwarn "${PN}: group $groupname already contains $username, not re-adding it"
+		bbnote "${PN}: group $groupname already contains $username, not re-adding it"
 	fi
 	if test "x$gshadow" = "xno"; then
 		rm -f $rootdir${sysconfdir}/gshadow
@@ -136,7 +136,7 @@ perform_groupdel () {
 			sleep $count
 		done
 	else
-		bbwarn "${PN}: group $groupname doesn't exist, not removing it"
+		bbnote "${PN}: group $groupname doesn't exist, not removing it"
 	fi
 }
 
@@ -164,7 +164,7 @@ perform_userdel () {
 		       sleep $count
 	       done
 	else
-		bbwarn "${PN}: user $username doesn't exist, not removing it"
+		bbnote "${PN}: user $username doesn't exist, not removing it"
 	fi
 }
 
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-20 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 17:14 [PATCH 0/1] Avoid unnecessary useradd warnings Peter Kjellerstedt
2015-10-20 17:14 ` [PATCH 1/1] useradd_base.bbclass: Do not warn without a reason Peter Kjellerstedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.