Code Monkey home page Code Monkey logo

lfs-kvm's Introduction

lfs-kvm

Description

Create qcow2 image for KVM (QEMU) of LFS 10.0 x86_64 systemd or sysvinit.

The scripts mimics the LFS 10.0 book as close as possible.

Features

  • Downloads all code automatically
  • Creates qcow2 image
  • Builds LFS 10.0
  • Supports systemd or sysvinit
  • Can be resumed from almost every step

Prerequisites

  • Linux
  • QEMU

Usage

  • First run 02-version-check.sh and confirm all software with the book.
  • Then run lfs-kvm.sh to make lfs qcow2 image.
02-version-check.sh
./lfs-builder.sh [start-chapter]

start-chapter - from which chapter (to continue) building

How to choose init system:

Modify variable KVM_LFS_INIT in lfs-kvm.sh.

Supported values:

systemd
sysvinit

Side Effects

Permanent:

  • Creates lfs user
  • Creates lfs group
  • Creates /mnt/lfs directory

Temporary:

During build:

  • Mounts /mnt/lfs
  • Mounts temporary filesystems
  • Connects nbd device to qcow2 image

Difference compared to ALFS

  • Builds version 10.0 (latest version ALFS supports is 8.0)
  • Uses shell scripts directly (ALFS extracts build instructions from LFS sources)

Contributing

Send PR or open an issue.

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.