A GNU/Linux distribution for x86_64 based routers
Find a file
2019-11-04 15:46:54 +08:00
files updated 2019-11-03 17:22:17 +08:00
patches updated 2019-10-10 23:53:41 +08:00
ports update ports 2019-11-04 15:46:54 +08:00
rootfs updated 2019-10-16 17:23:02 +08:00
toolchain updated 2019-11-03 17:22:17 +08:00
.gitignore updated 2019-10-06 17:55:25 +08:00
01-toolchain updated 2019-10-06 17:55:25 +08:00
02-base updated 2019-11-03 17:22:17 +08:00
03-mkiso updated 2019-10-16 17:23:02 +08:00
config updated 2019-10-16 17:23:02 +08:00
LICENSE Initial commit 2018-11-30 22:01:27 +08:00
README.md update readme 2019-10-31 22:54:20 +08:00
version-check.sh add version-check.sh script 2018-12-01 00:29:51 +08:00

lfs-scripts

This repo contain scripts to automate LFS build + livecd. This LFS build is using CRUX's pkgutils for managing packages and initramfs generator from Venom Linux for livecd initramfs.

Requirements

  • sudo
  • passes lfs version-check.sh test
  • squashfs-tools & libisoburn (optional to create the livecd iso)

scripts

  • 01-toolchain

    • toolchain script to build base lfs (required)
    • this script need run as regular user
    • this script resume-able, just re-run the script to continue where you left
  • 02-base

    • script to build base lfs system
    • this script need run as root
    • all package is build using port system (pkgutils)
    • you can create your own ports by follow guide here
    • extra packages is added into this base lfs, eg:
      • linux kernel
      • wget
      • dhcpcd
      • wpa_supplicant
      • mkinitramfs (taken from Venom Linux, livecd support)
    • this script resume-able, just re-run the script to continue where you left
    • created packages can be reused
  • 03-mkiso

    • script to build lfs livecd iso
    • this script need run as root
  • version-check.sh

    • script to check utilities requirements to build lfs

Note

  • If you wanna build lfs to run in your machine/virtual you need to create partition for this lfs system and mount to /mnt/lfs directory.
  • If you just wanna create the livecd iso, you can straight run these script without mount partition for lfs.
  • By default this script build the lfs system in /mnt/lfs directory, so make sure you spare this directory for it.
  • If you wanna include extra package to base system/livecd, create build script into lfs/pkgscripts directory using existing template, edit 02-lfs-base script, add your custom package name to 'EXTRA_PKGS' and re-run the script.
  • By default all package built using '-O2 -march=x86-64 -pipe' for CFLAGS and CXXFLAGS, all cores for 'MAKEFLAGS', edit lfs/pkg.conf if you wanna change it.