summaryrefslogtreecommitdiff
path: root/meta/classes/useradd.bbclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-09-01 16:03:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 18:27:09 +0100
commit21371df16917cd82642b39763793783d61ee5516 (patch)
treeda7bd64d5d1835fb054bfa614f51339905be88f9 /meta/classes/useradd.bbclass
parentbc5f293b151b9ba0d6660814d88ee5041efce318 (diff)
downloadopenembedded-core-21371df16917cd82642b39763793783d61ee5516.tar.gz
openembedded-core-21371df16917cd82642b39763793783d61ee5516.tar.bz2
openembedded-core-21371df16917cd82642b39763793783d61ee5516.tar.xz
openembedded-core-21371df16917cd82642b39763793783d61ee5516.zip
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}. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r--meta/classes/useradd.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index ba8d8dc8f..5f5b68ddd 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -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