All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: poky@yoctoproject.org
Subject: Re: Add single user
Date: Fri, 11 Oct 2013 05:23:42 -0600	[thread overview]
Message-ID: <5257DFBE.3050300@mlbassoc.com> (raw)
In-Reply-To: <7BDD69127112414F90CF3FED4711BF150D15A47EB5@IAD2MBX05.mex02.mlsrvr.com>

On 2013-10-10 16:06, 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

Your package is empty since the install step is not quite correct.
Try adding this line before 'chown'
   install -d ${D}${datadir}/hal

Also, I think you may need this:
   FILES_${PN} = "${datadir}/hal /home/hal"

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


      parent reply	other threads:[~2013-10-11 11:23 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
2013-10-11 11:23 ` Gary Thomas [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=5257DFBE.3050300@mlbassoc.com \
    --to=gary@mlbassoc.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.