From: Sven Rebhan <odinshorse@googlemail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Adding new users when using buildroot?
Date: Fri, 4 Sep 2009 20:28:21 +0200 [thread overview]
Message-ID: <3dc1583f0909041128h53d08fbeqe248dc41668a7537@mail.gmail.com> (raw)
In-Reply-To: <4AA14BED.5010800@wildgooses.com>
2009/9/4 Ed W <lists@wildgooses.com>:
> 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
next prev parent reply other threads:[~2009-09-04 13:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 17:18 [gentoo-embedded] Adding new users when using buildroot? Ed W
2009-09-04 17:27 ` Ned Ludd
2009-09-04 18:28 ` Sven Rebhan [this message]
2009-09-04 18:50 ` Ed W
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dc1583f0909041128h53d08fbeqe248dc41668a7537@mail.gmail.com \
--to=odinshorse@googlemail.com \
--cc=gentoo-embedded@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox