]> code.ossystems Code Review - openembedded-core.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>
Mon, 4 Dec 2017 17:14:21 +0000 (17:14 +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>
(cherry picked from commit 057885ed6f22781960bce4e082e3aa96e126764c)
Signed-off-by: Armin Kuster <akuster808@gmail.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