[maemo-developers] Trouble setting up Scratchbox

From: Daniel Stone daniel.stone at nokia.com
Date: Tue Jul 10 22:29:16 EEST 2007
On Tue, Jul 10, 2007 at 10:25:46PM +0300, ext Kalle Vahlman wrote:
> 2007/7/10, David Levine <levine at pv.com>:
> >  2. Scratchbox uses "chroot" which can really confuse your view of the
> > world!  When you're inside scratchbox, you'll see a /home directory, but
> > that (on my system) is really at /scratchbox/users/me/home ..
> >    I've not yet discovered a way "out" of the scratchbox environment (to see
> > my "real" files).
> It would go around the point of chroot if you trivially could :)
> There are couple of mounts from the real system there though, most
> notably /tmp, /dev and /proc, but usually it's just simpler to copy
> into the scratchbox home dir what you need instead of hacking the
> other way round (Scratchbox is a maze of symbolic links, you get lost
> very quickly when trying to do funny stuff ;).

sudo mount --bind /home /scratchbox/users/$(whoami)/home

But mind when anything tries to rm -rf /scratchbox, it'll take out your
home directory too, so be careful.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070710/d95ba310/attachment.pgp 
More information about the maemo-developers mailing list