]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
useradd.bbclass: print a warn when useradd not found
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 23 Oct 2017 02:56:35 +0000 (10:56 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Nov 2017 13:30:17 +0000 (13:30 +0000)
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>
meta/classes/useradd.bbclass

index c9103cbe6a4af06a6c93ea1227b49154722c60e0..124becd082420ebff09cdf27f2c36512f5227dc9 100644 (file)
@@ -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