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

Phil Blundell pb at pbcl.net
Wed Jun 1 09:47:12 UTC 2011


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
wrap them in a call to chroot(8)?  That is, make useradd.bbclass do:

eval $PSEUDO chroot ${STAGING_DIR_TARGET} useradd ...

rather than the existing

eval $PSEUDO useradd --root ${STAGING_DIR_TARGET} ...

?

p.






More information about the Openembedded-core mailing list