Instructions and scripts to automate the process of building a LFS system
- install host requirements
on debian based systems:
sudo apt -y install m4 bison texinfo build-essential &&
sudo dpkg-reconfigure dash
on rhel based systems:
sudo dnf -y install gcc g++ make m4 bison byacc patch texinfo
- check host requirements
bash version-check.sh
-
edit vars.sh to set the desired parallel JOBS for compiling
-
proceed with the LFS chapters:
-
2.5. Creating a File System on the Partition
-
2.6. Setting The $LFS Variable
-
2.7. Mounting the New Partition
-
3.1. Introduction
-
4.2. Creating a Limited Directory Layout in the LFS Filesystem
-
4.3. Adding the LFS User
-
4.4. Setting Up the Environment
-
copy the scripts into /mnt/lfs/sources
-
as the lfs user from within the sources directory run chap5-6.sh
-
when prompted logout the lfs user and as the root user from within the sources directory run chap7p1.sh
-
when prompted from within the sources directory from within the chroot environment run chap7p2.sh
-
when prompted run chap8p1.sh and chap8p2.sh
-
when prompted continue with the LFS chapters:
-
10.2. Creating the /etc/fstab File
-
10.3. Linux-6.1.11
-
10.4. Using GRUB to Set Up the Boot Process
-
11.1. The End