From: Robert Yang Date: Thu, 19 Oct 2017 00:33:22 +0000 (+0800) Subject: useradd.bbclass: print a warn when useradd not found X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ffbe2c916746caa8e35fb29444699886349eb1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index c9103cbe6a4..124becd0824 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