Recently engaged in LFS, follow the http://www.linuxsir.org/bbs/thread322894.html
. Everything goes well!
However, when you start the instance, you may encounter the following problems:
Mounting kernel-based file systems:/proc/etc/rc. d/rcsysinit. d/s00mountkernfs: Line 24: Mount: Command not found
/Sys/etc/rc. d/rcsysinit. d/s00mountkernfs: Line 29: Mount: Command not found
[Fall]
Setting the console log level to 7...
/Etc/rc. d/rcsysinit. d/s02conslelog: line 30: demsg: Command not found
[Fail]
Populating/dev/with device nodes...
Grep:/proc/mounts: no such file or directory [fail]
Failure:
Unable to create device without a sysfs filesystem
After you press enter, this system will be halted and powerd off.
Key errors such as the above green logo, refer to this post, http://www.linuxsir.org/bbs/thread346672.html
I know that util-Linux contains these two commands, but after I enter chroot, Mount is displayed normally, but dmesg does not.
I re-installed Perl and util-Linux according to the post, but the problem is still the same, so I took a closer look.
Http://www.linuxsir.org/bbs/thread322894.html
, You can see the two installations related to util-Linux,
Util-linux-2.12r
Code:
tar xvf /lfs-sources/util-linux-2.12r.tar.bz2cd util-linux-2.12rsed -i 's@/usr/include@/tools/include@g' configure./configuremake -C libmake -C mount mount umountmake -C text-utils morecp -v mount/{,u}mount text-utils/more /tools/bincd ..
rm -rf util-linux-2.12r
And
Util-linux-2.12r
Code:
tar xvf $LFS/util-linux-2.12r.tar.bz2cd util-linux-2.12rsed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' /-i $(grep -rl '/etc/adjtime' .)mkdir -pv /var/lib/hwclockpatch -Np1 -i $LFS/util-linux-2.12r-cramfs-1.patchpatch -Np1 -i $LFS/util-linux-2.12r-lseek-1.patch./configuremake HAVE_KILL=yes HAVE_SLN=yesmake HAVE_KILL=yes HAVE_SLN=yes installcd ..rm -rf util-linux-2.12r
Therefore, the requirements for installing these two instances are retained.
Restart, OK, normal!
Haha !!
If LFS 6.4 is installed, it is util-Linux-ng.