Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-09-02 Thread Phil Blundell
On Thu, 2011-09-01 at 22:59 +0100, Richard Purdie wrote: The latter sounds like what we'll need to do. I haven't looked at shadow to see what kind of finessing is required though... Fixing the immediate problem with shadow turned out to be rather straightforward, see attached. However, with

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-09-02 Thread Richard Purdie
On Fri, 2011-09-02 at 10:50 +0100, Phil Blundell wrote: On Thu, 2011-09-01 at 22:59 +0100, Richard Purdie wrote: The latter sounds like what we'll need to do. I haven't looked at shadow to see what kind of finessing is required though... Fixing the immediate problem with shadow turned out

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-09-01 Thread Phil Blundell
I just tried using useradd.bbclass for the first time (in an effort to make dbus installable on a readonly-rootfs) and it doesn't seem to be working very well for me. The root of my problem seems to be the code below. As far as I can tell, what's happening is that process_root_flag() consumes

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-09-01 Thread Phil Blundell
On Thu, 2011-09-01 at 11:54 -0500, Mark Hatle wrote: What is it depending on for the target? Is the shadow-utils or something now required? That doesn't seem to make sense to me -- other then we need a passwd/group/shadow/gshadow file to work with. As long as something can provide those,

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-09-01 Thread Mark Hatle
On 9/1/11 11:58 AM, Phil Blundell wrote: On Thu, 2011-09-01 at 11:54 -0500, Mark Hatle wrote: What is it depending on for the target? Is the shadow-utils or something now required? That doesn't seem to make sense to me -- other then we need a passwd/group/shadow/gshadow file to work with.

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-09-01 Thread Phil Blundell
On Thu, 2011-09-01 at 12:25 -0500, Mark Hatle wrote: On 9/1/11 11:58 AM, Phil Blundell wrote: And, I guess, if you want to support online package management then it does make some sense to have the shadow utils there. But I don't need/want that in my configuration. Does busybox or

[OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-06-02 Thread Scott Garman
This adds a -native recipe for the shadow utilities. The custom --root option allows the the following utilities to be run within a chroot when invoked under pseudo: * useradd * groupadd * usermod * groupmod * userdel * groupdel * passwd * gpasswd * pwconv * pwunconv * grpconv * grpunconv They

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-06-01 Thread Phil Blundell
On Tue, 2011-05-31 at 12:53 -0700, Scott Garman wrote: This adds a -native recipe for the shadow utilities. The custom --root option allows the the following utilities to be run within a chroot when invoked under pseudo: Rather than patching the code for all these utilities, can't you just

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-06-01 Thread Martyn Welch
On 01/06/11 10:47, Phil Blundell wrote: On Tue, 2011-05-31 at 12:53 -0700, Scott Garman wrote: This adds a -native recipe for the shadow utilities. The custom --root option allows the the following utilities to be run within a chroot when invoked under pseudo: Rather than patching the code

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-06-01 Thread Phil Blundell
On Wed, 2011-06-01 at 13:34 +0100, Martyn Welch wrote: On 01/06/11 10:47, Phil Blundell wrote: On Tue, 2011-05-31 at 12:53 -0700, Scott Garman wrote: This adds a -native recipe for the shadow utilities. The custom --root option allows the the following utilities to be run within a

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-06-01 Thread Scott Garman
On 06/01/2011 02:47 AM, Phil Blundell wrote: On Tue, 2011-05-31 at 12:53 -0700, Scott Garman wrote: This adds a -native recipe for the shadow utilities. The custom --root option allows the the following utilities to be run within a chroot when invoked under pseudo: Rather than patching the

Re: [OE-core] [PATCH 2/7] shadow: add a -native recipe with customized utilities

2011-06-01 Thread Mark Hatle
On 6/1/11 12:43 PM, Scott Garman wrote: On 06/01/2011 02:47 AM, Phil Blundell wrote: On Tue, 2011-05-31 at 12:53 -0700, Scott Garman wrote: This adds a -native recipe for the shadow utilities. The custom --root option allows the the following utilities to be run within a chroot when invoked