]> 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>
Thu, 19 Oct 2017 00:33:22 +0000 (08:33 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 23 Oct 2017 02:33:28 +0000 (10:33 +0800)
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>
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