On 07/13/2014 11:31 PM, Chen Qi wrote:
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.

Why is this not appropriate, we had been doing it in the past. I believe that we do not want to stage a /home dir that will never be used, so having it staged by default does not make sense.

Sau!

Signed-off-by: Chen Qi <qi.c...@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"

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to