Gentoo Archives: gentoo-embedded

From: Ahmed Ammar <b33fc0d3@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] emerge --root : users not created
Date: Tue, 15 Dec 2009 22:24:50
Message-Id: 1260915849.9491.15.camel@gentoo-dev
In Reply to: Re: [gentoo-embedded] emerge --root : users not created by Peter Stuge
1 On Tue, 2009-12-15 at 18:37 +0100, Peter Stuge wrote:
2 > Ahmed Ammar wrote:
3 > > > > > so maybe it makes sense to simply have useradd call chroot()
4 > > > > > according to an option early on in main()?
5 > > > >
6 > > > > This will definitely not work on cross targets?
7 > > >
8 > > > Why not? useradd doesn't fork, it does all file IO on it's own, so I
9 > > > think it could work.
10 > >
11 > > Well how exactly do you expect chroot to succeed when the host is
12 > > x86 and the ${ROOT} is arm?
13 >
14 > It should work fine. Note chroot() system call, not the chroot
15 > utility.
16
17 Thanks for clearing that up, makes much more sense now.
18
19 A.