]> code.ossystems Code Review - openembedded-core.git/commit
useradd-staticids: Fix groupadd when --user-group is selected
authorMark Hatle <mark.hatle@windriver.com>
Mon, 10 Feb 2014 19:28:25 +0000 (13:28 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 12:03:31 +0000 (12:03 +0000)
commitae83db0fdcf0b807ffdfc901f4d1c463fffee82a
treeec0dc728eb98f3542fa7c0f18c4fe0e620d8770e
parent54590cdb940b6145ac92729ebf9bb7e7e537f5e2
useradd-staticids: Fix groupadd when --user-group is selected

When --user-group is selected (it's on by default as well) we want
to translate that to a groupname and disable the --user-group.  Before
we just disabled --user-group, but didn't always add the group to the
system.

This change ensures that we add the group (as long as we have enough
information to actually add the group), and we disable --user-group
in that case.  If a static groupid is not specified we continue to
use the groupname, but via an explicit groupadd.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd-staticids.bbclass