Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] What to put in chroot mtab
Date: Sat, 02 Aug 2014 10:38:48
Message-Id: 1542147.6CmhCN3dOm@wstn
In Reply to: Re: [gentoo-user] What to put in chroot mtab by Neil Bothwick
1 On Friday 01 August 2014 20:32:54 Neil Bothwick wrote:
2 > On Fri, 01 Aug 2014 14:07:08 +0100, Peter Humphrey wrote:
3 > > I run a couple of chroots on this box to build packages for other boxes
4 > > on the LAN. So far, I haven't worked out what I should
5 > > populate /etc/mtab with in each chroot. Is it enough to "grep
6 > > ext4 /etc/mtab > /mnt/chroot/etc/mtab"? That catches all the physical
7 > > partitions, but I imagine I need to add some /proc, /sys and /dev
8 > > entries as well, but is there a simple formula for doing this?
9 >
10 > Do you need anything in mtab in the chroot?
11
12 Only while keeping the chroot clean so that it matches the target.
13 Specifically, locale-purge, which is run in a clean-up script from time to
14 time.
15
16 > I've been using chroots to build packages for slower machines for years
17
18 Yes, I know - that's where I got the idea ;)
19
20 > and /etc/mtab has always been empty or non-existent, with no problems. df
21 > gets the hump when run inside the chroot, but the package building works
22 > fine.
23
24 --
25 Regards
26 Peter