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 1NKEVM-0002Sv-NC for garchives@archives.gentoo.org; Mon, 14 Dec 2009 17:14:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 776F8E088F; Mon, 14 Dec 2009 17:14:15 +0000 (UTC) Received: from mail1.nippynetworks.com (mail1.nippynetworks.com [212.227.250.41]) by pigeon.gentoo.org (Postfix) with ESMTP id 17F01E088F for ; Mon, 14 Dec 2009 17:14:15 +0000 (UTC) Received: from localhost (mail1.nippynetworks.com [127.0.2.1]) by mail1.nippynetworks.com (Postfix) with ESMTP id 4E80A6746F1 for ; Mon, 14 Dec 2009 17:14:14 +0000 (GMT) X-Virus-Scanned: amavisd-new at nippynetworks.com Received: from mail1.nippynetworks.com ([127.0.2.1]) by localhost (mail1.nippynetworks.com [127.0.2.1]) (amavisd-new, port 10024) with LMTP id ObkxnT1DmpXe for ; Mon, 14 Dec 2009 17:14:14 +0000 (GMT) Received: from ed-wildgooses-macbook-pro.local (office.nippynetworks.com [94.194.201.187]) (Authenticated sender: edward@wildgooses.com) by mail1.nippynetworks.com (Postfix) with ESMTPSA id 028DD6741C9 for ; Mon, 14 Dec 2009 17:14:13 +0000 (GMT) Message-ID: <4B267265.7080406@wildgooses.com> Date: Mon, 14 Dec 2009 17:14:13 +0000 From: Ed W User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] emerge --root : users not created References: <166af1cf0912140817j66fb0ba3q96f1e8285790bc8@mail.gmail.com> In-Reply-To: <166af1cf0912140817j66fb0ba3q96f1e8285790bc8@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 00ab256c-0444-4612-a1b2-40548970a72f X-Archives-Hash: 0f58fb7998d79e1bc2caf94723bccfd0 Yep, seems like a known bug Also the bug exists if you merge in a binary package I believe? Quite annoying - workarounds would be highly appreciated! Ed Shinkan wrote: > Hi everyone, > > I posted this on gentoo-user initially, but someone answered and > advised to post this to embedded : > > 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 ? > > > Here is "Willie Wong" answer : > > 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? > > Thanks in advance. > > -- > 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