From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DsdAw-0002HP-HO for garchives@archives.gentoo.org; Wed, 13 Jul 2005 09:05:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6D92pZH016049; Wed, 13 Jul 2005 09:02:51 GMT Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6D92pOS019021 for ; Wed, 13 Jul 2005 09:02:51 GMT Received: from gaia.prhnet (unknown [84.12.164.30]) by smtp.nildram.co.uk (Postfix) with ESMTP id 01D9424F6E8 for ; Wed, 13 Jul 2005 10:03:47 +0100 (BST) Received: from [192.168.129.25] (wstn.home [192.168.129.25]) by gaia.prhnet (Postfix) with ESMTP id 8BF0F122B8 for ; Wed, 13 Jul 2005 10:03:49 +0100 (BST) Message-ID: <42D4D8F4.2050007@gotadsl.co.uk> Date: Wed, 13 Jul 2005 10:03:48 +0100 From: Peter Humphrey User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050704) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: [gentoo-amd64] chroot howto? Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Archives-Salt: ec4ce033-1798-4e28-a07d-b29e289edca6 X-Archives-Hash: 4a5b520396cb788ff140864ab45b09f7 I've decided to have a play with chroot on this ~amd64 xfce4 box, so I followed the instructions at http://www.gentoo.org/proj/en/base/amd64/technotes/index.xml?part=1&chap=4 to set up the jail in a separate partition mounted on /mnt/gentoo32. My idea is to use it for e.g. firefox-bin and its plugins, and maybe wine. I have a few questions. First, the technotes are far from clear in explaining how the 32-bit chroot jail works, and unhelpful to a chroot acolyte like me in detailing how to build it, so I had to use my initiative - always a grave risk ;-) I unpacked an x86 stage 3, and set up hosts, networks and users as instructed, but when I tried "linux32 chroot /mnt/gentoo32 /bin/bash" I got a permission-refused error on /bin/bash. (I tried both with and without --login; it made no difference.) So I unpacked a portage snapshot, rebooted from the installation CD and tried again. I could then chroot. I reasoned that /bin/bash could not be executed because there was no 32-bit kernel, so I emerged and compiled gentoo-sources in /mnt/gentoo32. After that I could chroot from the installed system. But how much more of a Gentoo system do I need to build in the chroot jail? Emerge --sync? Emerge system? I have /mnt/tmp bound to /mnt/gentoo32/mnt/tmp, and /mnt/home, /mnt/boot, /mnt/usr/share and /mnt/usr/portage/distfiles bound similarly. Do I need to env-update whenever I chroot? What difference is there between chroot with and without --login, apart from sourcing /etc/profile etc? And when I've built it, how do I go about using it? No amount of googling helps me to understand, and the Gentoo docs are more-or-less silent on the subject. -- Rgds Peter Humphrey Linux Counter 5290, Aug 93. -- gentoo-amd64@gentoo.org mailing list