]> code.ossystems Code Review - openembedded-core.git/commit
useradd-staticids: Adjust USERADD_ERROR_DYNAMIC condition and error message
authorMark Hatle <mark.hatle@windriver.com>
Mon, 10 Feb 2014 19:28:26 +0000 (13:28 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 12:03:31 +0000 (12:03 +0000)
commitf35bbba65e3e41f8dea1f9ff872d3a9fbd84bf6d
tree6d6225ab863ab0dca2e87db7936a7467c6ca1038
parentae83db0fdcf0b807ffdfc901f4d1c463fffee82a
useradd-staticids: Adjust USERADD_ERROR_DYNAMIC condition and error message

The USERADD_ERROR_DYNAMIC needs to check that both users and groups that are
defined need to be represented as static ids, or an error should occur.

For the user check, we want to make sure the uid is a numeric value.  (The gid
can be name, as the GROUPADD check will validate for a number there -- or
during install useradd will fail if that group is not defined.)

For the group check, we verify that the gid is specified and not left as a name.

Also two statements that can be uncommented for debugging were added so that
future development work on this code would be easier to do.

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