diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2015-10-20 19:14:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-21 22:56:05 +0100 |
commit | c9bef348302a6af1ca9c2cffd2692d52ceebce88 (patch) | |
tree | 00ccdfb203b56af3d557aeed4ea24119b7e9e455 /meta/classes/useradd_base.bbclass | |
parent | accb59e07b68b57ee57e36cc6c66e36c46dab576 (diff) | |
download | poky-c9bef348302a6af1ca9c2cffd2692d52ceebce88.tar.gz |
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.
(From OE-Core rev: f775e4cffe45edb673a414a2038c4f2b09b9b827)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/useradd_base.bbclass')
-rw-r--r-- | meta/classes/useradd_base.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/useradd_base.bbclass b/meta/classes/useradd_base.bbclass index 802f3a1085..ab3cd353f0 100644 --- a/meta/classes/useradd_base.bbclass +++ b/meta/classes/useradd_base.bbclass | |||
@@ -104,7 +104,7 @@ perform_groupmems () { | |||
104 | sleep $count | 104 | sleep $count |
105 | done | 105 | done |
106 | else | 106 | else |
107 | bbwarn "${PN}: group $groupname already contains $username, not re-adding it" | 107 | bbnote "${PN}: group $groupname already contains $username, not re-adding it" |
108 | fi | 108 | fi |
109 | if test "x$gshadow" = "xno"; then | 109 | if test "x$gshadow" = "xno"; then |
110 | rm -f $rootdir${sysconfdir}/gshadow | 110 | rm -f $rootdir${sysconfdir}/gshadow |
@@ -136,7 +136,7 @@ perform_groupdel () { | |||
136 | sleep $count | 136 | sleep $count |
137 | done | 137 | done |
138 | else | 138 | else |
139 | bbwarn "${PN}: group $groupname doesn't exist, not removing it" | 139 | bbnote "${PN}: group $groupname doesn't exist, not removing it" |
140 | fi | 140 | fi |
141 | } | 141 | } |
142 | 142 | ||
@@ -164,7 +164,7 @@ perform_userdel () { | |||
164 | sleep $count | 164 | sleep $count |
165 | done | 165 | done |
166 | else | 166 | else |
167 | bbwarn "${PN}: user $username doesn't exist, not removing it" | 167 | bbnote "${PN}: user $username doesn't exist, not removing it" |
168 | fi | 168 | fi |
169 | } | 169 | } |
170 | 170 | ||