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 1NKDSp-0001m3-Fa for garchives@archives.gentoo.org; Mon, 14 Dec 2009 16:08:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10281E0B06 for ; Mon, 14 Dec 2009 16:07:59 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id 9E1C9E07AD for ; Mon, 14 Dec 2009 15:09:29 +0000 (UTC) Received: from math.princeton.edu ([128.112.18.16] helo=sep.dynalias.net) by sentinel.math.Princeton.EDU with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NKCYC-0000cN-Cw for gentoo-user@lists.gentoo.org; Mon, 14 Dec 2009 10:09:29 -0500 Received: by sep.dynalias.net (Postfix, from userid 1001) id CD74564B02A; Mon, 14 Dec 2009 10:13:12 -0500 (EST) Date: Mon, 14 Dec 2009 10:13:12 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Emerge with --root option : users not created Message-ID: <20091214151312.GB21815@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <166af1cf0912140502o35adb412i9b5517723448dfb8@mail.gmail.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166af1cf0912140502o35adb412i9b5517723448dfb8@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: fb73ed2d-ac06-4e4b-8deb-8b354866ae4e X-Archives-Hash: 1da53a8dbe702d144818437663847a98 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