-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: coreutils
Version: 8.13-3
Severity: wishlist
If I chroot into a subdirectory, then /proc/mounts shows
me 3 mounts for "/". Sample session:
{root@cecil:~ 752} mount /dev/sdh2 /mnt
{root@cecil:~ 753} mount --bind /proc /mnt/proc
{root@cecil:~ 754} chroot /mnt
# cat /proc/mounts | grep ' / '
rootfs / rootfs rw 0 0
/dev/disk/by-uuid/68cc0c8f-306a-44bd-af2d-8441039bae5e / ext4
rw,noatime,user_xattr,barrier=1,data=ordered,discard 0 0
/dev/sdh2 / ext4 rw,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
Of course only the 3rd line is valid, but how should a script
running within the chroot know? Do you think it would be
possible to use the "CLONE_NEWNS" option for clone(2) to
hide all the invalid mount points outside of the new directory
tree?
Of course I am not sure that coreutils is the right package
to fix this, or if such a change is worth the effort. Please
reassign if necessary.
Many thanx
Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk8tRzAACgkQUTlbRTxpHjefGACgjqfdEA2x2A/gRRIaf9zytYqN
luYAn1gvkUMRFolmxd9jpcItWF5Nau7n
=Vu1u
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]