On 05/14/2013 01:59:08 PM, Bruce Dubbs wrote: > 2. Also, I did a test of setting /etc/mtab as a symlink to > /proc/mounts > and it seems to work properly although the output of 'mount' is a bit > more verbose. My objection of 'mount' not specifying the device for > the > rootfs is fixed. I think this is done by reading the root= option on > the kernel command line, so it may not work exactly right in all > cases. > For instance, it may not work if an initramfs is used and the root > fs > is specified by uuid or label. > > In any case, should we change the /etc/mtab entry to a symlink?
Yes, /etc/mtab can't work properly with a chroot that exits without umounting all its mount points, let alone with process-local mount namespaces. Rob -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page