Avoid unnecessary useradd warnings
cover Avoid unnecessary useradd warnings
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(-)
Signature · 1 line
2.1.0
PATCH 1/1 useradd_base.bbclass: Do not warn without a reason
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.
--- meta/classes/useradd_base.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/useradd_base.bbclass +3 -3
@@ -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 }
Signature · 1 line
2.1.0