]> code.ossystems Code Review - openembedded-core.git/commit
useradd.bbclass: set PSEUDO_PASSWD consistent with root directory
authorPeter A. Bigot <pab@pabigot.com>
Sat, 15 Nov 2014 19:53:54 +0000 (13:53 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Nov 2014 12:58:21 +0000 (12:58 +0000)
commitec3417ad825c52f5137d38b91d8fcb4637a50f4c
treef479a5b6e3cba06f550a4844936a2ce1d6c27bc4
parent071d364b7a758ba5e546bb18c5816ac4c2e6747c
useradd.bbclass: set PSEUDO_PASSWD consistent with root directory

When installing into a sysroot this class examines $D/etc/passwd for
content, then invokes useradd to make changes.  Under pseudo useradd
attempts to look up user information in directories specified by
$PSEUDO_PASSWD.  For opkg multilib installs $D is not always the same as
$IMAGE_ROOT, and the user might already be in the IMAGE_ROOT files,
causing a failure during rootfs population.

Fix this by ensuring the files pseudo looks at when doing useradd stuff
are the same ones that useradd.bbclass will be manipulating.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
meta/classes/useradd.bbclass