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 885E4138A1F for ; Wed, 23 Apr 2014 03:22:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C6BEE09C6; Wed, 23 Apr 2014 03:22:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97556E09B0 for ; Wed, 23 Apr 2014 03:22:38 +0000 (UTC) Received: from [192.168.1.97] (pool-173-71-214-138.clppva.fios.verizon.net [173.71.214.138]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jcallen) by smtp.gentoo.org (Postfix) with ESMTPSA id 680E034006D for ; Wed, 23 Apr 2014 03:22:37 +0000 (UTC) Message-ID: <535731F9.5010906@gentoo.org> Date: Tue, 22 Apr 2014 23:22:33 -0400 From: Jonathan Callen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 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 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: Output of "mount" and "cat /etc/mtab" inside install chroot? References: <20140419114318.GC1084@waltdnes.org> <5301095.8kd1OTifEl@wstn> <20140421234445.GA9433@waltdnes.org> <1772958.6eTVaUvfdv@wstn> In-Reply-To: <1772958.6eTVaUvfdv@wstn> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: bda0c907-8a69-412e-b61f-ee9d34a0187a X-Archives-Hash: eb07c2ffd7edc1927d67f225ba0408aa -----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-----