Public Repository

Last pushed: a year ago
Short Description
This aims to make the build of LFS systems easier for experienced users.
Full Description

Linux From Scratch build scripts

Remember to run the Tool-chain builder

Source for this build can be found at

This is the meaty part of the automatic Linux From Scratch builder.

This aims to make the build of LFS systems easier for experienced users.

If you have not yet build your first (or maybe even a few) LFS systems yet, then
you should head over to the (LFS)[] website
and do so, before attempting to start using this one.

Getting started

To compile the packages, run this command:

docker run --rm --privileged --userns=host -v /tmp/lfs/lfs:/mnt/lfs tlyngej/lfs-base-system:8.0

That's it!

What's the catch?

There is no installation included. At all. You need to copy the files where
you want them to be, and mount the file system with the following commands,
after the compiling is done.


mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run

if [ -h $LFS/dev/shm ]; then
  mkdir -pv $LFS/$(readlink $LFS/dev/shm)

chroot "$LFS" /usr/bin/env -i              \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin     \
    /bin/bash --login

A boot-loader is not installed. Grub is there, so following the instructions
on the LFS website should be easy enough, for an experienced user.

If you need to do any post-build operations (chapter 7 in the LFS book), like
setting up ethernet devices, this is the time to do so.

Remember to alter the fstab, re-compile the linux package, etc, as well, if you
need to.

Docker Pull Command