Opened 21 years ago

Closed 20 years ago

#688 closed defect (fixed)

Shift "Mounting virtual file systems" to Ch 5

Reported by: greg@… Owned by: lfs-book@…
Priority: low Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

These items used to be in Ch 5 but were moved to Ch 6 at the time of the Ch & Ch 6 separation and /static implementation. The reasons made sense back then, but now that we have the new Ch 5 build method, the need is just not there anymore. We can use the binaries in /tools/bin to do the work. In fact, mounting from within the chroot can lead to confusion and /etc/mtab and /proc/mounts getting out of sync. We should also probably move the "Creating essential symlinks" & "Creating the passwd and group files" sections as well. This would also eliminate the "I have no name!" prompt issue.

Discuss on dev list after 5.0 release.

Change History (6)

comment:1 by tushar@…, 21 years ago

It still makes sense IMO. Ch 5 messes with /tools/, Ch 6 with the $LFS/. Though things such as mounting and creating the passwd files (that are currently done from inside chroot) can be done before.

comment:2 by gerard@…, 20 years ago

To me it feels wrong to create all directories in chapter 5. Mounting, however, makes more sense to do in chapter 5 out of sync problems with the host system's /etc/mtab

How about a compromise and move mount to chapter 5 and create just the few directories we need? That would mean only creating $LFS/proc, $LFS/dev and $LFS/dev/pts

Comments?

comment:3 by lfsbill@…, 20 years ago

Basically, I can see this being a step in the right direction. I would also make /dev/shm so that the tests pass (well, mount it also).

For safety reasons, I can easily see defering making unneeded directories until we are in chroot.

Sounds like a decent compromise to me.

comment:4 by greg@…, 20 years ago

Summary: Shift "Creating directories" & "Mounting virtual file systems" to Ch 5Shift "Mounting virtual file systems" to Ch 5

Ok, having had time to think about this, I now agree that the "Creating directories" should probably stay in Ch 6 because it would introduce an element of risk for new readers to hose their host system. But like Gerard said, the mounting of the virtual file systems could still happen in Ch5. Retitling accordingly.

comment:5 by lizardo@…, 20 years ago

It has been discovered that just moving the "Mounting the proc and devpts file systems" to just before entering chroot should fix the annoying problem described at http://archives.linuxfromscratch.org/mail-archives/lfs-dev/2004-January/041498.html.

See also http://archives.linuxfromscratch.org/mail-archives/lfs-dev/2004-January/041614.html for what should be done to achieve this.

IMHO, this should be done for 5.1.

comment:6 by jeremy@…, 20 years ago

Resolution: fixed
Status: newclosed

Alex committed a fix to this in current CVS - it's not in LFS 5.1, but will be in the version afterward.

Note: See TracTickets for help on using tickets.