On 29/05/2013 11:09 AM, Bruce Dubbs wrote: > Geoff Swan wrote: >> After installation using the LFS-7.3 book, the reboot process is not >> working, with error messages about /run being a read-only filesystem >> when attempting to execute /etc/rc.d/rcS.d/S00mountvirtfs > > Do you have a symlink /var/run -> /run? Yes. root:/# ls -l /var : lrwxrwxrwx 1 root root 4 May 21 00:47 run -> /run :
> >> I noticed that rcsysinit.d is not present in /etc/rc.d. Are the scripts >> that should be in this directory responsible for re-mounting the root >> filesystem as rw? > > The links in /etc/rc.d/rcS.d are run at startup. The very first > instruction in mountvirtfs is to mount /run. > >> According to the book, it should be present. Should it have been >> installed by the lfs-bootscripts-20130123 package or have I missed seom >> vital instruction? >> >> "The intialization file above will instruct rc to run all the scripts >> starting with an S in the /etc/rc.d/rcsysinit. >> d directory followed by all the scripts starting with an S in the >> /etc/rc.d/rc?.d directory where the question >> mark is specified by the initdefault value." >> >> My current /etc/rc.d contents: >> /etc/inittab: > > Those are correct. You don't say what is in fstab. You should have > > tmpfs /run tmpfs defaults 0 0 Yes, these are present. The drive partitions are /dev/sda2, 3, 4 ... and are present as well. proc /proc proc nosuid,noexec,nodev 0 0 sysfs /sys sysfs nosuid,noexec,nodev 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /run tmpfs defaults 0 0 devtmpfs /dev devtmpfs mode=0755,nosuid 0 0 > > and `mount` should show: > > tmpfs on /run type tmpfs (rw) I'll check if it ever boots to a shell. Currently it complains that the filesystem is mounted read-only and fails at the beginning of mountvirtfs. The grub boot line has the root device mounted as ro, I thought that it was remounted at some stage to rw during the boot process. I could change this to rw but I'd like to better understand the problem first. > > rcsysinit.d was changed to rcS.d some time ago. IIRC it was for LFS > 7.0. However, I do see a place in the Chapter 7 text that was not > updated. I'll fix that. > > You may also need to check that your kernel configuration has > > CONFIG_TMPFS=y Ahh, not set! CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y # CONFIG_TMPFS is not set I'll rebuild the kernel with that set. Must have missed it. Thanks again Bruce. > > -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page