Re: [OE-core] useradd class not working

2011-10-20 Thread Mark Hatle
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

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] useradd class not working

2011-10-20 Thread Otavio Salvador
On Thu, Oct 20, 2011 at 14:12, Mark Hatle mark.ha...@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: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] useradd class not working

2011-10-20 Thread Otavio Salvador
On Thu, Oct 20, 2011 at 15:17, Otavio Salvador ota...@ossystems.com.br wrote:
 On Thu, Oct 20, 2011 at 14:12, Mark Hatle mark.ha...@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: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] useradd class not working

2011-10-19 Thread Otavio Salvador
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: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core