最近在搞LFS,按照 http://www.linuxsir.org/bbs/thread322894.html 的说明来做的。一切顺利!
但是开机,重启的时候却遇到这样子的问题:
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.
关键错误如上面绿色标识的,参照了这个帖子,http://www.linuxsir.org/bbs/thread346672.html
知道是因为Util-linux包含了这两个命令,但是我进入Chroot之后,mount显示正常,但是dmesg则显示没有该命令。
我就依照那个帖子里的,把perl,和Util-linux都重新安装了一边,但是问题还是一样的,所以我就又仔细看了一下 http://www.linuxsir.org/bbs/thread322894.html ,看到与Util-linux里相关的两次安装,
Util-linux-2.12r
tar xvf /lfs-sources/util-linux-2.12r.tar.bz2 cd util-linux-2.12r sed -i 's@/usr/include@/tools/include@g' configure ./configure make -C lib make -C mount mount umount make -C text-utils more cp -v mount/{,u}mount text-utils/more /tools/bin cd ..
rm -rf util-linux-2.12r
和
Util-linux-2.12r
tar xvf $LFS/util-linux-2.12r.tar.bz2 cd util-linux-2.12r sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' / -i $(grep -rl '/etc/adjtime' .) mkdir -pv /var/lib/hwclock patch -Np1 -i $LFS/util-linux-2.12r-cramfs-1.patch patch -Np1 -i $LFS/util-linux-2.12r-lseek-1.patch ./configure make HAVE_KILL=yes HAVE_SLN=yes make HAVE_KILL=yes HAVE_SLN=yes install cd .. rm -rf util-linux-2.12r
所以就安装这两个的要求重新做了一边。
重启,OK,正常!
哈哈!!
如果安装的是LFS 6.4,那就是Util-linux-ng了。