Well done! The new LFS system is installed! We wish you much success with your shiny new custom-built Linux system.
It may be a good idea to create an
/etc/lfs-release file. By having this file, it is very
easy for you (and for us if you need to ask for help at some point) to find
out which LFS version is installed on the system. Create this file by
running:
echo r12.4-45-systemd > /etc/lfs-release
The first one shows the status of your new system with respect to the Linux Standards Base (LSB). To create this file, run:
cat > /etc/lsb-release << "EOF" DISTRIB_ID="Zirconium Linux From Scratch" DISTRIB_RELEASE="r12.4-45-systemd" DISTRIB_CODENAME="<your name here>" DISTRIB_DESCRIPTION="Zirconium Linux From Scratch" EOF
The second one contains roughly the same information, and is used by systemd and some graphical desktop environments. To create this file, run:
cat > /etc/os-release << "EOF" NAME="Zirconium Linux From Scratch" VERSION="r12.4-45-systemd" ID=lfs PRETTY_NAME="Zirconium Linux From Scratch r12.4-45-systemd" VERSION_CODENAME="<your name here>" HOME_URL="https://www.linuxfromscratch.org/lfs/" RELEASE_TYPE="development" EOF
Be sure to customize the fields 'DISTRIB_CODENAME' and 'VERSION_CODENAME' to make the system uniquely yours.
Now that all of the software has been installed, it is time to reboot your computer. However, there are still a few things to check. Here are some suggestions:
Install any firmware needed if the kernel driver for your hardware requires some firmware files to function properly.
Ensure a password is set for the root user.
A review of the following configuration files is also appropriate at this point.
/etc/fstab
/etc/hosts
/etc/inputrc
/etc/profile
/etc/resolv.conf
/etc/nanorc
Now that we have said that, let's move on to booting our shiny new LFS installation for the first time! First exit from the chroot environment:
logout
Now, reboot the system.
Assuming the GRUB boot loader was set up as outlined earlier, the menu is set to boot LFS r12.4-45-systemd automatically.
When the reboot is complete, the LFS system is ready for use. What you will see is a simple “login: ” prompt. At this point, you can proceed to the BLFS Book where you can add more software to suit your needs.
If your reboot is not successful, it is time to troubleshoot. For hints on solving initial booting problems, see https://www.linuxfromscratch.org/lfs/troubleshooting.html.