useradd.bbclass: remove hardcoded reference to /usr/bin

Otherwise the class doesn't work if ${bindir} is set to a different value;
likewise for /var vs ${localstatedir}.

(From OE-Core rev: 21371df16917cd82642b39763793783d61ee5516)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Phil Blundell 2011-09-01 16:03:52 +01:00 committed by Richard Purdie
parent c04ae9bf71
commit 050e43a57f
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ fi
}
useradd_sysroot () {
export PSEUDO="${STAGING_DIR_NATIVE}/usr/bin/pseudo"
export PSEUDO_LOCALSTATEDIR="${STAGING_DIR_TARGET}/var/pseudo"
export PSEUDO="${STAGING_DIR_NATIVE}${bindir}/pseudo"
export PSEUDO_LOCALSTATEDIR="${STAGING_DIR_TARGET}${localstatedir}/pseudo"
# Explicitly set $D since it isn't set to anything
# before do_install