第五章 使LFS系统可启动
1. Create the /etc/fstab file:
cat > /etc/fstab << "EOF"
#Begin /etc/fstab
#file system mount-point type options dump fsck
#order
/dev/sda2 / ext4 defaults 1 1
/dev/sda1 swap swap pri=1 0 0
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
#End /etc/fstab
EOF
2. Install the Linux-5.8.3 kernel:
cd /sources
tar xvf linux-5.8.3.tar.xz
cd linux-5.8.3
make mrproper
make defconfig
make menuconfig
Note: Be sure to maximize the Putty window, otherwise you cannot enter the kernel configuration menu.