Docker configuration for building Linux From Scratch system
Switch branches/tags
Nothing to show
Clone or download
Latest commit ece7b0b Sep 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config * Variables from .variables file moved to the Dockerfile Feb 12, 2018
scripts bug in libelf fixed Sep 6, 2018
toolchain Continue on organizing scripts Dec 10, 2017
.gitignore ignores added Mar 11, 2018
Dockerfile update to 8.2 Mar 11, 2018
LICENSE Initial commit Nov 21, 2017
README.md typo fix in readme Mar 11, 2018

README.md

LFS in VirtualBox

Description

This repository contains docker configuration to build bootable iso image with Linux From Scratch 8.2.

Why

General idea is to learn Linux by building and running LFS system in isolation from the host system.

Structure

Scripts are organized in the way of following book structure whenever it makes sense. Some deviations are done to make a bootable iso image.

Build

Use the following command:

docker rm lfs                                       && \
docker build --tag lfs:8.2 .                        && \
sudo docker run -it --privileged --name lfs lfs:8.2 && \
sudo docker cp lfs:/tmp/lfs.iso .
# Ramdisk you can find here: /tmp/ramdisk.img

Please note, that extended privileges are required by docker container in order to execute some commands (e.g. mount).

Usage

Final result is bootable iso image with LFS system which, for example, can be used to load the system inside virtual machine (tested with VirtualBox).

License

This work is based on instructions from Linux from Scratch project and provided with MIT license.