-----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-----