Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot?
Date: Mon, 21 Apr 2014 23:45:13
Message-Id: 20140421234445.GA9433@waltdnes.org
In Reply to: Re: [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot? by Peter Humphrey
1 On Mon, Apr 21, 2014 at 09:38:44AM +0100, Peter Humphrey wrote
2 > On Monday 21 Apr 2014 00:55:56 yac wrote:
3 > > On Sat, 19 Apr 2014 13:54:07 +0100
4 > > Peter Humphrey <peter@××××××××××××.uk> wrote:
5 > > > The installation handbook used to include a command to
6 > > > write /etc/mtab in the chroot by grepping the host mtab
7 > >
8 > > It was part of grub-install, now grub legacy
9 > >
10 > > https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=10#doc
11 > > _chap4
12 >
13 > Yes, thanks, a couple of people posted what it says here the other
14 > day. Now I'm puzzling over whether it's good advice.
15 >
16 > For instance, suppose I want to reinstall the chroot in which I keep
17 > an image of my Atom box here on my workstation. Then /etc/mtab has:
18 > /dev/md5 / [...]
19 > but once I chroot into /mnt/atom, where the image lives, that's wrong and
20 > should be:
21 > /dev/mapper/vg7-atom / [...]
22 > because vg7-atom is now the root of the file system.
23 >
24 > Does the handbook need an update? Or maybe it's right after all
25 > because when grub runs its installer it's unconcerned with where
26 > it's invoked from.
27 >
28 > [Wanders off stage-left, muttering and scratching his head...]
29
30 *AFTER YOU CHROOT* what are the contents of /proc/self/mounts and
31 /proc/mounts ? Can you copy either of them into /etc/mtab and have the
32 correct result?
33
34 --
35 Walter Dnes <waltdnes@××××××××.org>
36 I don't run "desktop environments"; I run useful applications

Replies