mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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: 2428444f4d5deeaad90753bde51455c0b55d7d3e) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9d5296bba5
commit
e52027eef7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user