Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reinterpretcat/lfs
Docker configuration for building Linux From Scratch system
https://github.com/reinterpretcat/lfs
docker lfs lfs-book linux linux-from-scratch linuxfromscratch
Last synced: 9 days ago
JSON representation
Docker configuration for building Linux From Scratch system
- Host: GitHub
- URL: https://github.com/reinterpretcat/lfs
- Owner: reinterpretcat
- License: mit
- Created: 2017-11-21T19:39:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T07:31:28.000Z (3 months ago)
- Last Synced: 2024-08-12T08:51:28.368Z (3 months ago)
- Topics: docker, lfs, lfs-book, linux, linux-from-scratch, linuxfromscratch
- Language: Shell
- Homepage:
- Size: 212 KB
- Stars: 648
- Watchers: 14
- Forks: 84
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![LFS in VirtualBox](https://user-images.githubusercontent.com/1611077/33808510-16825dd2-dde8-11e7-9a1c-0ca0bc3ff2b5.png)
## Description
This repository contains docker configuration to build bootable iso
image with [Linux From Scratch 8.2](http://www.linuxfromscratch.org/lfs/downloads/8.2/LFS-BOOK-8.2.pdf).## Status
At the moment, I don't have plans to update scripts to the latest LFS versions. However, pull requests are welcomed.
## 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.imgPlease 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).## Troubleshooting
If you have problems with master branch, please try to use stable version from the latest release with toolchain from archive.
## License
This work is based on instructions from [Linux from Scratch](http://www.linuxfromscratch.org/lfs)
project and provided with MIT license.