public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jonathan Callen <jcallen@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Output of "mount" and "cat /etc/mtab" inside install chroot?
Date: Tue, 22 Apr 2014 23:22:33 -0400	[thread overview]
Message-ID: <535731F9.5010906@gentoo.org> (raw)
In-Reply-To: <1772958.6eTVaUvfdv@wstn>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 04/22/2014 04:48 AM, Peter Humphrey wrote:
> On Monday 21 Apr 2014 19:44:45 Walter Dnes wrote:
> 
>> *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?
> 
> No, of course it's the same as outside the chroot, because before entering, I do a 'mount
> -tproc proc /mnt/atom/proc'. I did check anyway to be sure.
> 

You may want to check again: you likely won't see any /mnt/atom/* in /proc/mounts (which is a
symlink to /proc/self/mounts), as they will have their paths correctly output for inside the
chroot, but you *will* see mounts that only exist outside the chroot.  /proc/self/mountinfo will
only show mounts reachable from inside the chroot, but it is incompatible with the mtab format.
Newer versions of mount(8) will use /proc/self/mountinfo if it detects that the final target of
/etc/mtab (possibly /proc/self/mounts) is not writable.

- -- 
Jonathan Callen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJTVzHvAAoJELHSF2kinlg41ssP/1JO8FTHrGt6NPZm39BvMOrm
GEAcQ5ZlHuzVjNc9lImYHrsiWpVXfikTqecR1P9sXZa98eZfrqXhlzpe+vZQxLu0
x/zki3wA29htlfvpRV+Bi8yieWVenNBhWkRq09nzLgglQWBsRFJUU+kIAtDX5Ynf
E2MmZsa6K7uhy1Lrg4LVyqEjb1671fVvphQiB1zvjIjWc08tEqB/v4BMPuODbtJS
Ame4AgvA89EFr0K1kw0NAOtxgmcpVjof1onwda8g6V84tIaq98279ratmM+knJFg
586+YKF9Ffd41twtYF3ANYgy9ruFLSZ/jlnV78IbH3FqPvzxqWmfNvET030Oq0q0
A67t4fwYO62PEwCcOlSnVLLfAQhFPKTv+Yqj1hI8l/64o52CHXIQzhnADJouw8aL
i4OBkYAaFDv/uQsydsa3hQ519OG058nQZ/Sr+AN1qyp6Axum9GFqOvIzMEHpEH4P
tb8Prvp+drNU+AC8uIEvCsaSSUC4wLpywwV23iAzrOQdG14SAkkz8Znrty1tSHc1
Y4lmiS4U9xRMGx1Mvz8Xat3yBOl/bRS0mAejKqjSDdZ+6Rtq1gZ7LhdBeG5Nokla
Kdx1JO+QvcQDDnIj64qq6Hq1MY3zu+WYRiacx7KvpsuyIDM+Pc6qCJaRYGYveWW9
aDWZ2siL8DaOwYeRT48L
=jgV4
-----END PGP SIGNATURE-----


  reply	other threads:[~2014-04-23  3:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-19 11:43 [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot? Walter Dnes
2014-04-19 12:21 ` Tom H
2014-04-19 12:54 ` Peter Humphrey
2014-04-19 13:37   ` Mark David Dumlao
2014-04-19 14:24   ` Tom H
2014-04-19 21:16     ` Walter Dnes
2014-04-21 10:16       ` Tom H
2014-04-20 22:55   ` yac
2014-04-21  8:38     ` Peter Humphrey
2014-04-21 23:44       ` Walter Dnes
2014-04-22  8:48         ` Peter Humphrey
2014-04-23  3:22           ` Jonathan Callen [this message]
2014-04-22 11:29         ` Tom H

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=535731F9.5010906@gentoo.org \
    --to=jcallen@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox