Giter VIP home page Giter VIP logo

lfs-base-system's Introduction

Linux From Scratch build scripts

IMPORTANT NOTE! Remember to run the Tool-chain builder first!

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)[http://www.linuxfromscratch.org/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.3

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.

export $LFS=<PATH_TO_LFS_FILE_SYSTEM_HERE>

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)
fi

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.

lfs-base-system's People

Contributors

tlyngej avatar tommy-lynge avatar enbyfox avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.