From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NKFNJ-0001X1-2j for garchives@archives.gentoo.org; Mon, 14 Dec 2009 18:10:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 318DEE0B54 for ; Mon, 14 Dec 2009 18:10:24 +0000 (UTC) Received: from mail-fx0-f215.google.com (mail-fx0-f215.google.com [209.85.220.215]) by pigeon.gentoo.org (Postfix) with ESMTP id 45768E0870 for ; Mon, 14 Dec 2009 16:16:03 +0000 (UTC) Received: by fxm7 with SMTP id 7so3242348fxm.29 for ; Mon, 14 Dec 2009 08:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=sSo3JRfbnNA3Bpo3rwFzfEJvY6hp3IlxroVpGQj7HqI=; b=kfW+5XQ65fPhgd9r9gngFdenkuKUKFNjlF4WFGS7lIwQ71KRR/T4xPe7nDa3wmO8dF ZQRl1d3zqp5nMYgdem9Md31cMI+EMWSYo3VD01kFZPRkdXhTloAuj9k2Wtm3TumMfX+N ++IbXX0uMQUMdCtNrvp7FqcEEJWfNEkGEdAoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=UrO4KZjWVjcFHIJsQjIagQLdg7bCLX84BeoqcdicwCMPn9QSE4COIbLqweEZ9BUoqY dDfXkGWzSGMx0rCXJpS629FcHlgqnWY4SJWdhJY+2HNlmwbwOJZsaGkqLrMdD1/s744N TUj9lkoS7wbG4C72J1UXASfqPDmnqwBcVDAPY= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.127.195 with SMTP id h3mr5866392fas.57.1260807362146; Mon, 14 Dec 2009 08:16:02 -0800 (PST) In-Reply-To: <20091214151312.GB21815@princeton.edu> References: <166af1cf0912140502o35adb412i9b5517723448dfb8@mail.gmail.com> <20091214151312.GB21815@princeton.edu> From: Shinkan Date: Mon, 14 Dec 2009 17:15:42 +0100 Message-ID: <166af1cf0912140815i8b722b8i898b1c02a3b3298d@mail.gmail.com> Subject: Re: [gentoo-user] Emerge with --root option : users not created To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=00235407f006f371e8047ab29677 X-Archives-Salt: 00e97021-ac20-482c-b409-b54643104726 X-Archives-Hash: fda445304f0aba00cfeedd5466e907b2 --00235407f006f371e8047ab29677 Content-Type: text/plain; charset=UTF-8 Thanks, I'll do that ! 2009/12/14 Willie Wong > 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 ' (cross-emerge), and that > > 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 > > -- Pierre. "Sometimes when I'm talking, my words can't keep up with my thoughts. I wonder why we think faster than we speak. Probably so we can think twice." - Bill Watterson --00235407f006f371e8047ab29677 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, I'll do that !

2009/12/14 Wil= lie Wong <= wwong@math.princeton.edu>
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=3D/target <someport>' (cross-emer= ge), 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 chroot= ing on
> /target and making something that requires this user (such as launchin= g
> clamd for clamav), or simply by looking at /target/etc/passwd to see t= hat
> 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 embedde= d
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




--
Pierre.
"= ;Sometimes when I'm talking, my words can't keep up with my thought= s. I wonder why we think faster than we speak. Probably so we can think twi= ce." - Bill Watterson
--00235407f006f371e8047ab29677--