diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-10-23 10:56:35 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-07 13:30:22 +0000 |
commit | 2c3d5968d9d4c915d58baeed6da8535990b70715 (patch) | |
tree | e647653939ab8340772b3782ba5c1f34e03157dc /meta/classes/useradd.bbclass | |
parent | dc652a75213b4bc7d57a609ceec4c544b0f22153 (diff) | |
download | poky-2c3d5968d9d4c915d58baeed6da8535990b70715.tar.gz |
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.
(From OE-Core rev: 057885ed6f22781960bce4e082e3aa96e126764c)
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>
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r-- | meta/classes/useradd.bbclass | 1 |
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 () { | |||
118 | # useradd/groupadd tools are unavailable. If there is no dependency, we assume we don't want to | 118 | # useradd/groupadd tools are unavailable. If there is no dependency, we assume we don't want to |
119 | # create users in the sysroot | 119 | # create users in the sysroot |
120 | if ! command -v useradd; then | 120 | if ! command -v useradd; then |
121 | bbwarn "command useradd not found!" | ||
121 | exit 0 | 122 | exit 0 |
122 | fi | 123 | fi |
123 | 124 | ||