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 1E87D138A1F for ; Mon, 21 Apr 2014 08:38:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B89DE09FF; Mon, 21 Apr 2014 08:38:47 +0000 (UTC) Received: from smarthost01c.mail.zen.net.uk (smarthost01c.mail.zen.net.uk [212.23.1.5]) by pigeon.gentoo.org (Postfix) with ESMTP id 5D6C6E09F8 for ; Mon, 21 Apr 2014 08:38:46 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01c.mail.zen.net.uk with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Wc9kT-000CG2-5n for gentoo-user@lists.gentoo.org; Mon, 21 Apr 2014 09:38:45 +0100 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot? Date: Mon, 21 Apr 2014 09:38:44 +0100 Message-ID: <5301095.8kd1OTifEl@wstn> Organization: at home User-Agent: KMail/4.11.5 (Linux/3.12.13-gentoo; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20140421005556.38abbcf2@gentoo.org> References: <20140419114318.GC1084@waltdnes.org> <1568743.81bfSX6GRC@wstn> <20140421005556.38abbcf2@gentoo.org> 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-smarthost01c-IP: [82.69.80.10] X-Archives-Salt: aaea8e98-03a0-4057-a3ae-a15c8c7801ad X-Archives-Hash: d68267c4beb7a2848e2eda0d1bcaca00 On Monday 21 Apr 2014 00:55:56 yac wrote: > On Sat, 19 Apr 2014 13:54:07 +0100 > Peter Humphrey wrote: > > The installation handbook used to include a command to > > write /etc/mtab in the chroot by grepping the host mtab > > It was part of grub-install, now grub legacy > > https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=10#doc > _chap4 Yes, thanks, a couple of people posted what it says here the other day. Now I'm puzzling over whether it's good advice. For instance, suppose I want to reinstall the chroot in which I keep an image of my Atom box here on my workstation. Then /etc/mtab has: /dev/md5 / [...] but once I chroot into /mnt/atom, where the image lives, that's wrong and should be: /dev/mapper/vg7-atom / [...] because vg7-atom is now the root of the file system. Does the handbook need an update? Or maybe it's right after all because when grub runs its installer it's unconcerned with where it's invoked from. [Wanders off stage-left, muttering and scratching his head...] -- Regards Peter