useradd.bbclass: check if a group already exists manually
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 20 Oct 2011 21:18:11 +0000 (21:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Oct 2011 16:27:15 +0000 (17:27 +0100)
commitc9156bce93fd9f7f5c2068d490cf9355b276df3a
treea16b3cede861c669f58d0894e8980c7e48f3de31
parentfaec2cfe13d1d8f673a9e67c2d4747f7ee2e69d5
useradd.bbclass: check if a group already exists manually

The use of groupadd -f makes much more difficult to figure when a
group is not add. This was the case of the class not working for our
usage and this being caused by the lack of '/etc/group' file but
unnoticed as groupadd wasn't failing according.

(From OE-Core rev: 82933a1ff921fd0836f03e6f379fd8536cdc0a30)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd.bbclass