All of lore.kernel.org
 help / color / mirror / Atom feed
* useradd class not working
@ 2011-10-20  4:26 Otavio Salvador
  2011-10-20 16:12 ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2011-10-20  4:26 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hello,

I am using useradd in a recipe and it needs to add a group in the
rootfs at build time. This doesn't work.

it seems groupadd does nothing.

Has someone used or tried it?

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: useradd class not working
  2011-10-20  4:26 useradd class not working Otavio Salvador
@ 2011-10-20 16:12 ` Mark Hatle
  2011-10-20 17:17   ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2011-10-20 16:12 UTC (permalink / raw)
  To: openembedded-core

On 10/19/11 11:26 PM, Otavio Salvador wrote:
> Hello,
> 
> I am using useradd in a recipe and it needs to add a group in the
> rootfs at build time. This doesn't work.
> 
> it seems groupadd does nothing.
> 
> Has someone used or tried it?
> 


http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb

That is the recipe that was used when testing this feature.  If it no longer
works properly then something has recently broken in the groupadd functionality.

--Mark



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: useradd class not working
  2011-10-20 16:12 ` Mark Hatle
@ 2011-10-20 17:17   ` Otavio Salvador
  2011-10-20 21:24     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2011-10-20 17:17 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Oct 20, 2011 at 14:12, Mark Hatle <mark.hatle@windriver.com> wrote:
...
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb
>
> That is the recipe that was used when testing this feature.  If it no longer
> works properly then something has recently broken in the groupadd functionality.

Yes and I used it and openssh as base to my package but it seem to do nothing.

I tried to debug it and changed rootfs_ipk class to use "sh -x" when
running the preinst scripts of the packages and all seems fine however
it keeps not adding the group into rootfs/etc/group

I do appreciate help here since I am lost right now.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: useradd class not working
  2011-10-20 17:17   ` Otavio Salvador
@ 2011-10-20 21:24     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2011-10-20 21:24 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer, mark.hatle

On Thu, Oct 20, 2011 at 15:17, Otavio Salvador <otavio@ossystems.com.br> wrote:
> On Thu, Oct 20, 2011 at 14:12, Mark Hatle <mark.hatle@windriver.com> wrote:
> ...
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb
>>
>> That is the recipe that was used when testing this feature.  If it no longer
>> works properly then something has recently broken in the groupadd functionality.
>
> Yes and I used it and openssh as base to my package but it seem to do nothing.
>
> I tried to debug it and changed rootfs_ipk class to use "sh -x" when
> running the preinst scripts of the packages and all seems fine however
> it keeps not adding the group into rootfs/etc/group

I got some more information during today's debug session ...

useradd class is working perfectly for sysroot. I've added it to
systemd package (from meta-oe) and the "lock" group shows in sysroot
as expected. It fails for rootfs only.

After long time researching the reasioning of failure I found it. I am
going to send a patchset tomorrow.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-20 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-20  4:26 useradd class not working Otavio Salvador
2011-10-20 16:12 ` Mark Hatle
2011-10-20 17:17   ` Otavio Salvador
2011-10-20 21:24     ` Otavio Salvador

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.