From: Willie Wong <wwong@math.princeton.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Emerge with --root option : users not created
Date: Mon, 14 Dec 2009 10:13:12 -0500 [thread overview]
Message-ID: <20091214151312.GB21815@princeton.edu> (raw)
In-Reply-To: <166af1cf0912140502o35adb412i9b5517723448dfb8@mail.gmail.com>
On Mon, Dec 14, 2009 at 02:02:22PM +0100, Penguin Lover Shinkan squawked:
> I wanted to submit this as a bug on bugzilla, but I must be sure there is
> nothing that I miss.
>
> Let's say I have a /target dir.
> If I do 'emerge --root=/target <someport>' (cross-emerge), and that
> <someport> is supposed to create users (like vixie-cron, clamav or many
> others), users are not created on /target. I can verify that by chrooting on
> /target and making something that requires this user (such as launching
> clamd for clamav), or simply by looking at /target/etc/passwd to see that
> there's no expected users.
>
> Am I missing somethings or is this really a bug ?
>
If you don't get a better answer here, you should ask the embedded
group. But I think it maybe a bug:
Looking at eutils.eclass, in function enewuser, it explicitly checks
for whether the shell specified is available in ${ROOT}, but when it
comes time to create the actual user, it calls the system useradd,
which I think will add the user to /etc, and not ${ROOT}/etc...
Though, I cannot right now think of how to actually change it so that
it will create the appropriate accounts in a modified ${ROOT}. AFAIK
useradd does not support this. It may require re-implementing useradd
in portage? Which will just be silly.
Perhaps ${ROOT} is not designed to be used the way you intend to use
it? It looks like you are building embedded or cross-compiled, right?
Maybe a work-around is to do everything in a CHROOT?
Anyway, ask gentoo-embedded to see if there's any work arounds, and
maybe ask gentoo-dev to clarify on what $ROOT is used for?
Cheers,
W
--
A plateau is a high form of flattery.
Sortir en Pantoufles: up 1102 days, 13:42
next prev parent reply other threads:[~2009-12-14 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 13:02 [gentoo-user] Emerge with --root option : users not created Shinkan
2009-12-14 15:13 ` Willie Wong [this message]
2009-12-14 16:15 ` Shinkan
2009-12-14 20:41 ` Alan McKinnon
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=20091214151312.GB21815@princeton.edu \
--to=wwong@math.princeton.edu \
--cc=gentoo-user@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