Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Sven Rebhan <odinshorse@...>
Subject: Re: Adding new users when using buildroot?
Date: Fri, 4 Sep 2009 20:28:21 +0200
2009/9/4 Ed W <lists@...>:
> Obviously plenty of other ways to solve this, but curious if there is a
> solution within the portage build process?

I don't know of any standard way. Portage uses 'useradd' to generate
the new user
and this command does _not_ support a ROOT. The only (non-standard) way to
add a new user is by directly writing to /etc/passwd, but I'm not sure
if this works
on all OSes supported by Gentoo.

Anyway, if you follow http://gentoo.mindzoo.de/index.cgi/wiki/Cross%20Install
you will find the command

find /var/db/pkg -name '*.ebuild' -exec grep -qF 'pkg_postinst()' {}
\; -exec ebuild {} postinst \;

which reruns all postinstall sections of your cross-compiled system on
the target
and thus also creates the users.

Have fun!

    Sven


Replies:
Re: Adding new users when using buildroot?
-- Ed W
References:
Adding new users when using buildroot?
-- Ed W
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Adding new users when using buildroot?
Next by thread:
Re: Adding new users when using buildroot?
Previous by date:
Re: Adding new users when using buildroot?
Next by date:
Re: Adding new users when using buildroot?


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.