From: Saul Wold <sgw@linux.intel.com>
To: Chen Qi <Qi.Chen@windriver.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 2/2] base-files: stage the /home directory
Date: Mon, 14 Jul 2014 16:48:38 -0700 [thread overview]
Message-ID: <53C46C56.1090702@linux.intel.com> (raw)
In-Reply-To: <c36d415106e1210c21f520017b52b0ce84e064f3.1405319307.git.Qi.Chen@windriver.com>
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@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"
>
prev parent reply other threads:[~2014-07-14 23:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 6:31 [PATCH 0/2] Upgrade shadow to 4.2.1 Chen Qi
2014-07-14 6:31 ` [PATCH 1/2] shadow: upgrade from 4.1.4.3 " Chen Qi
2014-07-14 23:48 ` Saul Wold
2014-07-14 6:31 ` [PATCH 2/2] base-files: stage the /home directory Chen Qi
2014-07-14 23:48 ` Saul Wold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53C46C56.1090702@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=Qi.Chen@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.