From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 485CA13877A for ; Sat, 2 Aug 2014 10:38:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBC89E08CE; Sat, 2 Aug 2014 10:38:40 +0000 (UTC) Received: from smarthost01b.mail.zen.net.uk (smarthost01b.mail.zen.net.uk [212.23.1.3]) by pigeon.gentoo.org (Postfix) with ESMTP id E2EDCE0894 for ; Sat, 2 Aug 2014 10:38:39 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01b.mail.zen.net.uk with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XDWhy-0007bW-VX for gentoo-user@lists.gentoo.org; Sat, 02 Aug 2014 10:38:39 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] What to put in chroot mtab Date: Sat, 02 Aug 2014 11:38:38 +0100 Message-ID: <1542147.6CmhCN3dOm@wstn> Organization: at home User-Agent: KMail/4.12.5 (Linux/3.12.21-gentoo-r1; KDE/4.12.5; x86_64; ; ) In-Reply-To: <20140801203254.6f1726d7@hactar.digimed.co.uk> References: <3566559.YT61t9IyHV@wstn> <20140801203254.6f1726d7@hactar.digimed.co.uk> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost01b-IP: [82.69.80.10] X-Archives-Salt: b46e67ac-5a61-4aef-bf5d-c4b19652cfc6 X-Archives-Hash: 06b374b1b85eea1cabf88cbcdbea616c On Friday 01 August 2014 20:32:54 Neil Bothwick wrote: > On Fri, 01 Aug 2014 14:07:08 +0100, Peter Humphrey wrote: > > I run a couple of chroots on this box to build packages for other boxes > > on the LAN. So far, I haven't worked out what I should > > populate /etc/mtab with in each chroot. Is it enough to "grep > > ext4 /etc/mtab > /mnt/chroot/etc/mtab"? That catches all the physical > > partitions, but I imagine I need to add some /proc, /sys and /dev > > entries as well, but is there a simple formula for doing this? > > Do you need anything in mtab in the chroot? Only while keeping the chroot clean so that it matches the target. Specifically, locale-purge, which is run in a clean-up script from time to time. > I've been using chroots to build packages for slower machines for years Yes, I know - that's where I got the idea ;) > and /etc/mtab has always been empty or non-existent, with no problems. df > gets the hump when run inside the chroot, but the package building works > fine. -- Regards Peter