useradd.bbclass: Fix build time install issues
authorMark Hatle <mark.hatle@windriver.com>
Thu, 6 Feb 2014 23:37:23 +0000 (17:37 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Feb 2014 09:40:01 +0000 (09:40 +0000)
commit7b50270f5ba6a0b78f4f9d39d73c859a9894d5ed
tree9fa176679cfcc4591f2b73672e31aeb9fe2a1fdd
parenta15ecc9c3bfa9b011923ded249e29c563d94086a
useradd.bbclass: Fix build time install issues

When the system attempts to populate the sysroot's passwd/group files, it
does so in a single block.  However, with the way it was previously
implemented, the system would always run through the code necessary to
populate the sysroot, even in the case of target packages.  This had
the side effect that a cross-installed filesystem may not match a
target installed filesystem.

The code was slightly reorganized to ensure that the cross/target installed
pre-install script behavior is the same.  It also moves the block that
configures the sysroot parameters to the sysroot specific section of
the code.

Also some minor validation was occuring even on nativesdk packages.
Nativesdk packages should be skipped when processing useradd ops.

(From OE-Core rev: 99fd0f14fd774c9194f62795e6023880e3aa5612)

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