Skip to content

42-Ikole-Systems/LFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LFS

🤓 Linux From Scratch

About

Requirements

  • Docker

To build

We build the kernel in a docker container so it can be done on any system without crosscompiling.

# Build the docker image
$ docker build -t linux-build-environment-image .

# Run the docker image, note that we use the --privilged flag so we can move our boot-files to the filesystem outside of the container.
$ docker run --name linux-build-environment-container --privileged --rm -it linux-build-environment-image

Now that you are inside of the container we can actually build the kernel and userspace

# Go into the build folder
$ cd linux_build_environment

# Just call make :)
$ make