summaryrefslogtreecommitdiff
path: root/meta/classes/useradd.bbclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-09-07 21:20:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-07 23:43:59 +0100
commit848bb277769af5b094031aeb54d287c158256724 (patch)
tree0306dad1064b7de4b5fdeb2e23b9d9a0d4c9651f /meta/classes/useradd.bbclass
parent11b466546533c6c2ad1f24d61d02a5bf6c1329e1 (diff)
downloadopenembedded-core-848bb277769af5b094031aeb54d287c158256724.tar.gz
openembedded-core-848bb277769af5b094031aeb54d287c158256724.tar.bz2
openembedded-core-848bb277769af5b094031aeb54d287c158256724.tar.xz
openembedded-core-848bb277769af5b094031aeb54d287c158256724.zip
useradd.bbclass: use correct value for $D in postinst functions
This corrects the location of the password file used during package installation. See http://lists.linuxtogo.org/pipermail/openembedded-core/2011-September/009183.html and subsequent discussion. 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.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 5f5b68ddd..1e03a04a8 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -15,8 +15,8 @@ SYSROOT=""
if test "x$D" != "x"; then
# Installing into a sysroot
- SYSROOT="${STAGING_DIR_TARGET}"
- OPT="--root ${STAGING_DIR_TARGET}"
+ SYSROOT="$D"
+ OPT="--root $D"
# Add groups and users defined for all recipe packages
GROUPADD_PARAM="${@get_all_cmd_params(d, 'group')}"
@@ -79,7 +79,7 @@ useradd_sysroot () {
# Explicitly set $D since it isn't set to anything
# before do_install
- D=${D}
+ D=${STAGING_DIR_TARGET}
useradd_preinst
}