Dylan Cali wrote:
Hello,I'm both reporting a bug and submitting a patch, so hopefully it's okay I used lfs-dev instead of the lfs-patches mail list? If the virtual filesystems are not listed in /etc/fstab the mountvirtfs boot script fails with the following error: Mounting virtual file systems: /run /procmount: /proc: mount failed: No such file or directory /sysmount: /sys: mount failed: No such file or directory ***** [ FAIL ] ***** [ FAIL ] FAILURE: You should not be reading this error message.
You wouldn't get this message if you followed the book. See Section 8.2.
Since not listing virtual filesystems in /etc/fstab is considered acceptable (even recommended) on modern Linux installations [1][2][3], the mountvirtfs script should correctly handle this situation.
Some distros may do that, but it certainly is not standard.
The fix is pretty trivial: the mount commands in mountvirtfs simply need to specify the virtual filesystem type and device. I've attached patches for both the lfs 7.5 stable and lfs dev versions of the bootscripts package.
If the user wants to change the options for some reason, how would he do that?
I thank you for the suggestion, but I would rather not implement this in LFS.
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
