summaryrefslogtreecommitdiffstats
path: root/meta/classes/useradd.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r--meta/classes/useradd.bbclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 3b2d1dbfe8..64d6861644 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -153,10 +153,11 @@ fakeroot python populate_packages_prepend () {
153 rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or "" 153 rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
154 rdepends += " base-passwd shadow" 154 rdepends += " base-passwd shadow"
155 bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d) 155 bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d)
156 156
157 # Add the user/group preinstall scripts and RDEPENDS requirements 157 # Add the user/group preinstall scripts and RDEPENDS requirements
158 # to packages specified by USERADD_PACKAGES 158 # to packages specified by USERADD_PACKAGES
159 useradd_packages = d.getVar('USERADD_PACKAGES', True) or "" 159 if not bb.data.inherits_class('nativesdk', d):
160 for pkg in useradd_packages.split(): 160 useradd_packages = d.getVar('USERADD_PACKAGES', True) or ""
161 update_useradd_package(pkg) 161 for pkg in useradd_packages.split():
162 update_useradd_package(pkg)
162} 163}