aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-10-23 10:56:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-07 13:30:17 +0000
commit057885ed6f22781960bce4e082e3aa96e126764c (patch)
treeb9aa2dba4334c31027db7c46c4c1272f0c29a363 /meta/classes
parentf24a29fcba98ceff08c13b0f029be93995f1deed (diff)
downloadopenembedded-core-contrib-057885ed6f22781960bce4e082e3aa96e126764c.tar.gz
useradd.bbclass: print a warn when useradd not found
Exit quietly makes it very hard for debugging when user is not added as expected, print a warning helps a lot. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/useradd.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index c9103cbe6a..124becd082 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -118,6 +118,7 @@ useradd_sysroot () {
# useradd/groupadd tools are unavailable. If there is no dependency, we assume we don't want to
# create users in the sysroot
if ! command -v useradd; then
+ bbwarn "command useradd not found!"
exit 0
fi