[oe-commits] Ross Burton : useradd.bbclass: add dependency on base-files

git at git.openembedded.org git at git.openembedded.org
Sun Feb 9 11:01:52 UTC 2014


Module: openembedded-core.git
Branch: dora
Commit: c5756a0041837d030429a8a1ecd30cd5f7082137
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c5756a0041837d030429a8a1ecd30cd5f7082137

Author: Ross Burton <ross.burton at intel.com>
Date:   Wed Dec 18 16:20:02 2013 +0000

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)

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>

---

 meta/classes/useradd.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index a850e9d..a2ad648 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



More information about the Openembedded-commits mailing list