]> code.ossystems Code Review - openembedded-core.git/commit
useradd-staticids.bbclass: Read passwd/group files before parsing
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 18 Dec 2015 23:53:51 +0000 (00:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Jan 2016 11:32:20 +0000 (11:32 +0000)
commit3149319ad997379a01d87f2b1b5d14f66541997f
treea7298dd6977f02f796e12fe46f2635882135f6c5
parente98e98ce65cf9ffdef29462310a622ffddd1412b
useradd-staticids.bbclass: Read passwd/group files before parsing

Read and merge the passwd/group files before parsing the user and
group definitions. This means they will only be read once per
recipe. This solves a problem where if a user was definied in multiple
files, it could generate group definitions for groups that should not
be created. E.g., if the first passwd file read defines a user as:

foobar::1234::::

and the second passwd file defines it as:

foobar:::nogroup:The foobar user:/:/bin/sh

then a foobar group would be created even if the user will use the
nogroup as its primary group.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd-staticids.bbclass