[OE-core] [PATCH 2/2] image_types.bbclass: add tar --numeric-owner support

Richard Purdie richard.purdie at linuxfoundation.org
Sun Nov 2 15:01:06 UTC 2014


On Sun, 2014-11-02 at 04:48 -0600, Peter A. Bigot wrote:
> tar format normally stores user and group as names, which is the right
> thing to use when target passwd and group files are available.  When
> unpacking a rootfs archive onto a mounted SD card partition on a build
> host outside the pseudo environment the host passwd/group files will be
> used for name-to-id mapping, which results in mis-assigned identifiers
> (often for important ids like messagebus).
> 
> Using IMAGE_FSTYPES += "nug.tar" creates rootfs.nug.tar files where the
> owner and group are specified numerically, using the target IDs obtained
> when the archive is built under pseudo.
> 
> Signed-off-by: Peter A. Bigot <pab at pabigot.com>
> ---
>  meta/classes/image_types.bbclass | 2 ++
>  1 file changed, 2 insertions(+)

Shouldn't we always do this?

I'm trying to figure out when this would be a bad idea...

Cheers,

Richard




More information about the Openembedded-core mailing list