[lfs-dev] util-linux issues

Rob Landley rob at landley.net
Tue May 14 21:39:20 PDT 2013

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  


More information about the lfs-dev mailing list