summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-12-18 16:20:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-18 17:06:57 +0000
commit556368ba8a1f933a86b69be024bd0711d4bfe0a3 (patch)
tree022be7aa0865ec0f347d7f9c9bf9b3ea1d551078
parent5afe86a6854b21692fd97c5fc7fab50dbc068acb (diff)
downloadopenembedded-core-556368ba8a1f933a86b69be024bd0711d4bfe0a3.tar.gz
openembedded-core-556368ba8a1f933a86b69be024bd0711d4bfe0a3.tar.bz2
openembedded-core-556368ba8a1f933a86b69be024bd0711d4bfe0a3.zip
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. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 () {
rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
rdepends += ' ' + d.getVar('MLPREFIX') + 'base-passwd'
rdepends += ' ' + d.getVar('MLPREFIX') + 'shadow'
+ # base-files is where the default /etc/skel is packaged
+ rdepends += ' ' + d.getVar('MLPREFIX') + 'base-files'
d.setVar("RDEPENDS_%s" % pkg, rdepends)
# Add the user/group preinstall scripts and RDEPENDS requirements