Re: [yocto] Use of USERADD_PACKAGES with out recipe package files

2020-11-26 Thread Paul Barker
On Thu, 26 Nov 2020 at 03:21,  wrote:
>
> I have for an image append which I would like to add some users to but I do 
> not want to add any files as part of the package
> so I  have a layer which contains a recipe called user-config-0.1.bb which 
> has a useradd package USERADD_PACKAGES = " ${PN}-user-sys "  . then I have a 
> USERADD_PARAM_${PN}-user-sys = " .."
> which adds some users not shown and I also have an add group param as well 
> not shown
> I declare the package as  PACKAGES += "${PN}-user-sys" but do not set the 
> package files because i do not want any
> and in my image bbappend file I install the package  IMAGE_INSTALL_append += 
> "user-config-user-sys"
> The recipe builds but does not create a package and the do-rootfs cannot find 
> the package  and fails with
>
> No match for argument: user-config-user-sys
> Error: Unable to find a match
>
> well that seems to be the meaningful part I guess
>
> How do i get yocto to generate a package which only contains user group 
> creation part which can then be installed in my image
> I have added uses and groups before with files with out a problem, also this 
> is greatly simplified but still shows the core problem

You probably need to set `ALLOW_EMPTY_${PN}-user-sys`. See
https://docs.yoctoproject.org/ref-manual/ref-variables.html?highlight=allow_empty#term-ALLOW_EMPTY.

Thanks,

-- 
Paul Barker
Konsulko Group

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51569): https://lists.yoctoproject.org/g/yocto/message/51569
Mute This Topic: https://lists.yoctoproject.org/mt/78515331/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Use of USERADD_PACKAGES with out recipe package files

2020-11-25 Thread andrew . loader
I have for an image append which I would like to add some users to but I do not 
want to add any files as part of the package
so I  have a layer which contains a recipe called user-config-0.1.bb which has 
a useradd package USERADD_PACKAGES = " ${PN}-user-sys "  . then I have a 
USERADD_PARAM_${PN}-user-sys = " .."
which adds some users not shown and I also have an add group param as well not 
shown
I declare the package as  PACKAGES += "${PN}-user-sys" but do not set the 
package files because i do not want any
and in my image bbappend file I install the package  IMAGE_INSTALL_append += 
"user-config-user-sys"
The recipe builds but does not create a package and the do-rootfs cannot find 
the package  and fails with

No match for argument: user-config-user-sys
Error: Unable to find a match

well that seems to be the meaningful part I guess

How do i get yocto to generate a package which only contains user group 
creation part which can then be installed in my image
I have added uses and groups before with files with out a problem, also this is 
greatly simplified but still shows the core problem

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51567): https://lists.yoctoproject.org/g/yocto/message/51567
Mute This Topic: https://lists.yoctoproject.org/mt/78515331/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-