* Add single user
@ 2013-10-10 22:06 Michael Davis
2013-10-11 3:07 ` ChenQi
2013-10-11 11:23 ` Gary Thomas
0 siblings, 2 replies; 3+ messages in thread
From: Michael Davis @ 2013-10-10 22:06 UTC (permalink / raw)
To: poky@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
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
-Mike
[-- Attachment #2: Type: text/html, Size: 3640 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add single user
2013-10-10 22:06 Add single user Michael Davis
@ 2013-10-11 3:07 ` ChenQi
2013-10-11 11:23 ` Gary Thomas
1 sibling, 0 replies; 3+ messages in thread
From: ChenQi @ 2013-10-11 3:07 UTC (permalink / raw)
To: poky
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add single user
2013-10-10 22:06 Add single user Michael Davis
2013-10-11 3:07 ` ChenQi
@ 2013-10-11 11:23 ` Gary Thomas
1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2013-10-11 11:23 UTC (permalink / raw)
To: poky
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
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-11 11:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-10 22:06 Add single user Michael Davis
2013-10-11 3:07 ` ChenQi
2013-10-11 11:23 ` Gary Thomas
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.