summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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
}