summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-10-19 08:33:22 +0800
committerRobert Yang <liezhi.yang@windriver.com>2017-10-23 10:33:28 +0800
commit60ffbe2c916746caa8e35fb29444699886349eb1 (patch)
tree7a91a81ced84f2b0f37dd9c5de8fac2743b99723
parent3b413a80578caacd9a7f405f3c51a3921d78a60d (diff)
downloadopenembedded-core-contrib-60ffbe2c916746caa8e35fb29444699886349eb1.tar.gz
openembedded-core-contrib-60ffbe2c916746caa8e35fb29444699886349eb1.tar.bz2
openembedded-core-contrib-60ffbe2c916746caa8e35fb29444699886349eb1.zip
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>
-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