mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
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. (From OE-Core rev: ec3417ad825c52f5137d38b91d8fcb4637a50f4c) Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b0b468d681
commit
f363c2087d
@@ -24,6 +24,8 @@ if test "x$D" != "x"; then
|
||||
# Installing into a sysroot
|
||||
SYSROOT="$D"
|
||||
OPT="--root $D"
|
||||
# user/group lookups should match useradd/groupadd --root
|
||||
export PSEUDO_PASSWD="$SYSROOT:${STAGING_DIR_NATIVE}"
|
||||
fi
|
||||
|
||||
# If we're not doing a special SSTATE/SYSROOT install
|
||||
|
||||
Reference in New Issue
Block a user