Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
/ lfsbuild Public archive

Scripts for build a LFS (Linux From Scratch) system. Using LFS Development version

Notifications You must be signed in to change notification settings

lebao3105/lfsbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

I stopped working on this project since I don't have time for developing that. The work is now in Chapter 8 of LFS (Development build of course), you can continue working on it and beyond on BLFS! Remember to update wget URLs list!

Linux From Scratch Build Scripts

Requirements

  • A partition that is higher than 10GB (for normal use) or ~6GB (for testing if this project works:)
  • Install required packages shown from scripts/checker.sh --list-pkgs
  • User with sudo access (or even running as root user)
  • A working internet for running scripts/prepare.sh (if you don't use all-nodown parameter)
  • bash

Run

Clone this project, then run this to show what you can do here:

sudo bash -x ./scripts/prepare.sh help

You can run any files with the following syntax:

cd scripts
sudo bash -x prepare.sh [options] # If you have not done this yet
su - lfs # After prepared, switch to lfs user
bash -x [Script] [Options] # Any file you want

Some files are required to run as root, take care about that.

Here are the files you need to run:

  • prepare.sh (run as root/current user with sudo access)
  • buildcompiler1.sh (run as lfs user, build essential compiler part 1 - LFS chapter 5)
  • build1.sh (also run as lfs user, build on chapter 6)
  • buildcompiler2.sh (build essential compilers part 2)
  • build2.sh (run in chroot environment, build some packages)
  • build2_5.sh (part 2 of the build2.sh script)
  • build3.sh (Build your base system)

Notes

Normally, the disk/partition is mounted on a folder namely its label/UUID under /media/$USER/. You don't need to mount the partition in /mnt like LFS book.

This project based on LFS Book (also BLFS) Development build - which provides nearly latest packages. The stable version is 11.x series.

This script will install Linux system to your partition! Backup your data first!
ALL data on the new partition WILL BE DESTROYED. Make sure to format it to Ext4/Btrfs format. Never use NTFS or FAT!

This will takes you a lot of times (building GCC and Binutils + Linux kernel are the longests). You can do something you need, e.g your homeworks. But still look your PC.

About

Scripts for build a LFS (Linux From Scratch) system. Using LFS Development version

Topics

Resources

Stars

Watchers

Forks

Languages