diff options
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r-- | meta/classes/useradd.bbclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 0f9b84ca06..a8a1c14f48 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass | |||
@@ -3,7 +3,9 @@ USERADDPN ?= "${PN}" | |||
3 | # base-passwd-cross provides the default passwd and group files in the | 3 | # base-passwd-cross provides the default passwd and group files in the |
4 | # target sysroot, and shadow -native and -sysroot provide the utilities | 4 | # target sysroot, and shadow -native and -sysroot provide the utilities |
5 | # and support files needed to add and modify user and group accounts | 5 | # and support files needed to add and modify user and group accounts |
6 | DEPENDS_append = " base-passwd shadow-native shadow-sysroot" | 6 | DEPENDS_append = "${USERADDDEPENDS}" |
7 | USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot" | ||
8 | USERADDDEPENDS_virtclass-nativesdk = "" | ||
7 | 9 | ||
8 | # This preinstall function will be run in two contexts: once for the | 10 | # This preinstall function will be run in two contexts: once for the |
9 | # native sysroot (as invoked by the useradd_sysroot() wrapper), and | 11 | # native sysroot (as invoked by the useradd_sysroot() wrapper), and |
@@ -95,8 +97,12 @@ useradd_sysroot_sstate () { | |||
95 | fi | 97 | fi |
96 | } | 98 | } |
97 | 99 | ||
98 | do_install[prefuncs] += "useradd_sysroot" | 100 | do_install[prefuncs] += "${SYSROOTFUNC}" |
99 | SSTATEPOSTINSTFUNCS += "useradd_sysroot_sstate" | 101 | SYSROOTFUNC = "useradd_sysroot" |
102 | SYSROOTFUNC_virtclass-nativesdk = "" | ||
103 | SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}" | ||
104 | SYSROOTPOSTFUNC = "useradd_sysroot_sstate" | ||
105 | SYSROOTPOSTFUNC_virtclass-nativesdk = "" | ||
100 | 106 | ||
101 | # Recipe parse-time sanity checks | 107 | # Recipe parse-time sanity checks |
102 | def update_useradd_after_parse(d): | 108 | def update_useradd_after_parse(d): |