On Fri, Apr 07, 2006 at 01:37:07PM -0700, Dan Nicholson wrote:
> I think it should go right with the mount commands so there is no
> confusion.  Also, we don't know whether another package depends upon
> an mtab file being present.  To me, it's safest to add
> 
> mkdir -pv ${LFS}/etc
> touch ${LFS}/etc/mtab
> 
> to the kernfs page.  With a note like
> 
> "A proper Linux system maintains a list of the mounted file systems in
> the /etc/mtab file.  Since we will not be mounting any filesystems
> inside the chroot, create an empty file for utilities that expect its'
> presence."

Actually, on second thought, I'm going to change the location slightly.
I'll still use the commands and explanation you suggested, but I'm
thinking now to add it to section 6.7 , which is "Creating the passwd,
group, and log Files".

My reasoning is that 1) /etc/mtab isn't really anything to do with the
other kernfs mounts, 2) we already create /etc in 6.5 "Creating
Directories" and that fits there - there's no real need to create /etc
any earlier 3) by section 6.7 we still haven't begun building anything
or using the system in such a way that anything should require
/etc/mtab, so it should be safe, and 4) 6.7 as it is currently is really
just a pool of other files that need to be created that we haven't done
yet, so /etc/mtab fits better there, IMHO.

--
JH
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to