From: ChenQi <Qi.Chen@windriver.com>
To: <poky@yoctoproject.org>
Subject: Re: Add single user
Date: Fri, 11 Oct 2013 11:07:17 +0800 [thread overview]
Message-ID: <52576B65.3080704@windriver.com> (raw)
In-Reply-To: <7BDD69127112414F90CF3FED4711BF150D15A47EB5@IAD2MBX05.mex02.mlsrvr.com>
[-- Attachment #1: Type: text/plain, Size: 1592 bytes --]
On 10/11/2013 06:06 AM, Michael Davis wrote:
>
> I am attempting to add a single user to my poky build. I am trying to
> follow the useradd-example.bb layout but I cannot get bitbake to like
> it. My bb file looks like so:
>
> SUMMARY = "Add a user"
>
> DESCRIPTION = "This recipe will add a new user"
>
> PR = "r0"
>
> LICENSE = "MIT"
>
> LIC_FILES_CHKSUM =
> "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
>
> S = "${WORKDIR}"
>
> inherit useradd
>
> USERADD_PACKAGES = "${PN}"
>
> USERADD_PARAM_${PN} = "--disabled-password hal"
>
> do_install () {
>
> chown -R hal ${D}${datadir}/hal
>
> }
>
> FILES_${PN} = "${datadir}/hal/*"
>
> I have the useradd package specified as a dependency for a package
> group which I am installing for my image. When I bake, it attempts
> do_rootfs but fails and spits out a huge log after which it simple
> states that it couldn't satisfy dependencies for my package group and
> and points the the useradd package. Is there any obvious reason why
> such a simple recipe like this would not work? Thanks
>
Are you sure your package is not empty?
Maybe you want this in your recipe.
ALLOW_EMPTY_${PN} = "1"
Also, if you're only trying to add a user, use EXTRA_USERS_PARAMS in
your conf file (assume you're using poky/master, i'm not sure whether
dylan has this feature).
Best Regards,
Chen Qi
> -Mike
>
>
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
[-- Attachment #2: Type: text/html, Size: 5296 bytes --]
next prev parent reply other threads:[~2013-10-11 3:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 22:06 Add single user Michael Davis
2013-10-11 3:07 ` ChenQi [this message]
2013-10-11 11:23 ` Gary Thomas
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=52576B65.3080704@windriver.com \
--to=qi.chen@windriver.com \
--cc=poky@yoctoproject.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.