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 450D1138A1F for ; Mon, 21 Apr 2014 23:45:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90E17E096B; Mon, 21 Apr 2014 23:45:04 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 95239E0839 for ; Mon, 21 Apr 2014 23:45:03 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsGAIDvNVNLd/pM/2dsb2JhbABZgwY7w0yBFxd0giUBAQEBAzocHhULGAkTEg8FJTeHeQ3SDBMEjwEWgw6BFASPPokPhmGJa4Fqg0wh X-IPAS-Result: AqsGAIDvNVNLd/pM/2dsb2JhbABZgwY7w0yBFxd0giUBAQEBAzocHhULGAkTEg8FJTeHeQ3SDBMEjwEWgw6BFASPPokPhmGJa4Fqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="58389994" Received: from 75-119-250-76.dsl.teksavvy.com (HELO waltdnes.org) ([75.119.250.76]) by ironport2-out.teksavvy.com with SMTP; 21 Apr 2014 19:45:01 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Mon, 21 Apr 2014 19:44:45 -0400 From: "Walter Dnes" Date: Mon, 21 Apr 2014 19:44:45 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot? Message-ID: <20140421234445.GA9433@waltdnes.org> References: <20140419114318.GC1084@waltdnes.org> <1568743.81bfSX6GRC@wstn> <20140421005556.38abbcf2@gentoo.org> <5301095.8kd1OTifEl@wstn> 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5301095.8kd1OTifEl@wstn> User-Agent: Mutt/1.5.22 (2013-10-16) X-Archives-Salt: 6a5739ca-f94a-4660-8b56-b921003fd943 X-Archives-Hash: ad6600fcad25250e19b7c331f4cc61b3 On Mon, Apr 21, 2014 at 09:38:44AM +0100, Peter Humphrey wrote > 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...] *AFTER YOU CHROOT* what are the contents of /proc/self/mounts and /proc/mounts ? Can you copy either of them into /etc/mtab and have the correct result? -- Walter Dnes I don't run "desktop environments"; I run useful applications