public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ed W <lists@wildgooses.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Adding new users when using buildroot?
Date: Fri, 04 Sep 2009 19:50:13 +0100	[thread overview]
Message-ID: <4AA16165.1050000@wildgooses.com> (raw)
In-Reply-To: <3dc1583f0909041128h53d08fbeqe248dc41668a7537@mail.gmail.com>

Sven Rebhan wrote:
> 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.
>   


That seems like a good idea, but I think the docs say that user creation 
should be in pkg_setup() and certainly this is the case with dropbear?  
Seems a bit dangerous to re-run pkg_setup for every package...?

I also noticed that since I have only busybox in my final build and it's 
got pretty lousy support for adduser I may need to inject directly into 
/etc/

Actually the docs here 
http://devmanual.gentoo.org/ebuild-writing/users-and-groups/index.html 
suggest that this IS supposed to work inside the sandbox and hence we 
might reasonably expect it to work with ROOT= set.  However, as Ned 
says, it seems not to work right now...

Oh well

Thanks

Ed W



      reply	other threads:[~2009-09-04 13:41 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
2009-09-04 18:50   ` Ed W [this message]

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=4AA16165.1050000@wildgooses.com \
    --to=lists@wildgooses.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