[OE-core] [PATCH 2/2] base-files: stage the /home directory
Saul Wold
sgw at linux.intel.com
Mon Jul 14 23:48:38 UTC 2014
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.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"
>
More information about the Openembedded-core
mailing list