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 1MjZ2x-0000yZ-F7 for garchives@archives.gentoo.org; Fri, 04 Sep 2009 13:41:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 985BEE08AA; Fri, 4 Sep 2009 18:50:15 +0000 (UTC) Received: from mail1.nippynetworks.com (mail.mailasail.com [212.227.250.41]) by pigeon.gentoo.org (Postfix) with ESMTP id 71971E08AA for ; Fri, 4 Sep 2009 18:50:15 +0000 (UTC) Received: from localhost (mail1.nippynetworks.com [127.0.2.1]) by mail1.nippynetworks.com (Postfix) with ESMTP id 0807BB883D5 for ; Fri, 4 Sep 2009 19:50:15 +0100 (BST) 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 IIbySoDhB8S7 for ; Fri, 4 Sep 2009 19:50:14 +0100 (BST) 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 B5A25B51F0A for ; Fri, 4 Sep 2009 19:50:14 +0100 (BST) Message-ID: <4AA16165.1050000@wildgooses.com> Date: Fri, 04 Sep 2009 19:50:13 +0100 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] Adding new users when using buildroot? References: <4AA14BED.5010800@wildgooses.com> <3dc1583f0909041128h53d08fbeqe248dc41668a7537@mail.gmail.com> In-Reply-To: <3dc1583f0909041128h53d08fbeqe248dc41668a7537@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 3f8a15b3-b1ac-46b3-a390-c2149fc1d3f5 X-Archives-Hash: 5ba2a4bddea93dfc7e266ca6867a4cf3 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