summaryrefslogtreecommitdiff
path: root/meta/classes/useradd.bbclass
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@cisco.com>2013-09-05 23:41:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 23:01:50 +0100
commit5871337da49f8cd1eaf53f7cd0aacc026dc7bcdb (patch)
tree6ed66cf5c5378b5c94f7c65924d670c815d8cf70 /meta/classes/useradd.bbclass
parent609d5a9ab9e58bb1c2bcc2145399fbc8b701b85a (diff)
downloadopenembedded-core-5871337da49f8cd1eaf53f7cd0aacc026dc7bcdb.tar.gz
openembedded-core-5871337da49f8cd1eaf53f7cd0aacc026dc7bcdb.tar.bz2
openembedded-core-5871337da49f8cd1eaf53f7cd0aacc026dc7bcdb.zip
useradd: Handle users from a package being used in others
If there is a package A (TUNE_PKGARCH) which is depended upon by B which is MACHINE_ARCH and you build B for machine X, then Y, the user isn't present in the sysroot for machine Y since the useradd code is never triggered. The change ensures the code does get triggered and the user is present. [YOCTO 4739] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r--meta/classes/useradd.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index eabfc5d397..a850e9db6a 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -101,7 +101,7 @@ useradd_sysroot () {
}
useradd_sysroot_sstate () {
- if [ "${BB_CURRENTTASK}" = "package_setscene" ]
+ if [ "${BB_CURRENTTASK}" = "package_setscene" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
then
useradd_sysroot
fi
@@ -123,6 +123,7 @@ USERADDSETSCENEDEPS_virtclass-cross = ""
USERADDSETSCENEDEPS_class-native = ""
USERADDSETSCENEDEPS_class-nativesdk = ""
do_package_setscene[depends] += "${USERADDSETSCENEDEPS}"
+do_populate_sysroot_setscene[depends] += "${USERADDSETSCENEDEPS}"
# Recipe parse-time sanity checks
def update_useradd_after_parse(d):