2023-05-18 00:21:22 +02:00
2023-05-17 14:44:18 +02:00
2023-05-17 14:44:18 +02:00
2023-05-17 14:44:18 +02:00
2023-05-17 22:01:40 +02:00
2023-05-18 00:21:22 +02:00
2023-05-17 15:06:49 +02:00
2023-05-08 20:37:43 +02:00
2023-05-07 14:47:59 +02:00

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.4. Creating a New Partition
  • 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 chroot.sh

  • when prompted from within the sources directory from within the chroot environment run chap7p1.sh

  • when prompted 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 LFS_GRUB to Set Up the Boot Process
  • 11.1. The End

if the chroot environment has been exited and needs to be re-entered use re-chroot.sh

Description
Scripts to automate the installation of a LFS (Linux from scratch) system.
Readme 116 KiB
Languages
Shell 100%