[OE-core] [PATCH 2/2] base-files: stage the /home directory

Chen Qi Qi.Chen at windriver.com
Mon Jul 14 06:31:12 UTC 2014


The /home directory might be needed by packages that inherit useradd.bbclass.
One example is the 'xuser-account' recipe.

Previously, we patched the shadow package to change the behaviour of the
'--create-home' option. This is not appropriate. Instead, we should let
the base-files package also stage the /home directory.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
 meta/recipes-core/base-files/base-files_3.0.14.bb |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index 6d76a2b..fe82d20 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -138,6 +138,12 @@ do_install_append_linuxstdbase() {
         done
 }
 
+sysroot_stage_home () {
+	sysroot_stage_dir ${D}/home ${SYSROOT_DESTDIR}/home
+}
+
+SYSROOT_PREPROCESS_FUNCS = "sysroot_stage_home"
+
 PACKAGES = "${PN}-doc ${PN} ${PN}-dev ${PN}-dbg"
 FILES_${PN} = "/"
 FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses"
-- 
1.7.9.5




More information about the Openembedded-core mailing list