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 <pe...@prh.myzen.co.uk> 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 <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Reply via email to