summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-12-18 16:20:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-09 11:04:15 +0000
commit6d0a79526b08cd9cdc96bb9e925dbe0d64cdc778 (patch)
treec16fd938239c4cb1ed58b68062f493e04f164bc4 /meta/classes
parentd81dd16ce4a0ea921becba071ea5e38d6b0c5317 (diff)
downloadpoky-6d0a79526b08cd9cdc96bb9e925dbe0d64cdc778.tar.gz
useradd.bbclass: add dependency on base-files
Packages that use useradd.bbclass should have a dependency on base-files so that the /etc/skel directory is populated. Without this dependency base-files may or may not be installed when the postinst runs, and the skel content may or may not be copied. (From OE-Core master rev: 556368ba8a1f933a86b69be024bd0711d4bfe0a3) (From OE-Core rev: c5756a0041837d030429a8a1ecd30cd5f7082137) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/useradd.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index a850e9db6a..a2ad648938 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -182,6 +182,8 @@ fakeroot python populate_packages_prepend () {
182 rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or "" 182 rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
183 rdepends += ' ' + d.getVar('MLPREFIX') + 'base-passwd' 183 rdepends += ' ' + d.getVar('MLPREFIX') + 'base-passwd'
184 rdepends += ' ' + d.getVar('MLPREFIX') + 'shadow' 184 rdepends += ' ' + d.getVar('MLPREFIX') + 'shadow'
185 # base-files is where the default /etc/skel is packaged
186 rdepends += ' ' + d.getVar('MLPREFIX') + 'base-files'
185 d.setVar("RDEPENDS_%s" % pkg, rdepends) 187 d.setVar("RDEPENDS_%s" % pkg, rdepends)
186 188
187 # Add the user/group preinstall scripts and RDEPENDS requirements 189 # Add the user/group preinstall scripts and RDEPENDS requirements