A GNU/Linux distribution for x86_64 based routers
Find a file
Emmett1 0614b0900a
Merge pull request #35 from luis-07/patch-1
Added manjaro to tested
2022-05-13 06:50:02 +08:00
files updated 2020-07-02 23:33:24 +08:00
patches updated 2020-07-02 23:33:24 +08:00
ports updated 2022-04-09 08:19:46 +08:00
rootfs updated 2020-07-02 23:33:24 +08:00
toolchain updated 2022-04-09 08:19:46 +08:00
.gitignore updated 2022-04-09 08:19:46 +08:00
01-toolchain updates 2021-06-13 19:27:19 +08:00
02-base updates 2021-06-13 19:27:19 +08:00
03-mkiso fix UEFI boot directory 2021-06-13 20:38:17 +08:00
backuptoolchain.sh updated 2020-06-28 23:38:04 +08:00
config.default updated 2021-04-18 08:19:42 +08:00
enter-chroot updated 2022-04-09 08:19:46 +08:00
LICENSE updated 2020-07-02 23:33:24 +08:00
README.md Added manjaro to tested 2022-05-12 20:41:37 +02:00
run_qemu updated 2021-04-18 08:19:42 +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 multilib 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 / doas
  • wget
  • 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)
      • syslinux
    • 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

Step

Basically you just need to run all those 3 scripts without other command to get LFS system built including live ISO. You can run:

$ ./01-toolchain && sudo ./02-base && sudo ./03-mkiso

Note: script 01-toolchain gonna ask for sudo or doas password

  • First grab any distro's livecd to use as host, or you can just your current running linux distro as host. (read below for tested host)
  • Prepare your partition for LFS and mount it on /mnt/lfs or you can change where LFS build directory in config file.
  • Optionally modify config file to suit your need.
  • Run script 01-toolchain to build temporary toolchain.
  • Run script 02-base to build base LFS system.
  • Optionally run script 03-mkiso to build live iso, then you can test the iso using qemu by running ./run_qemu <iso file>.
  • Run ./enter-chroot to enter chroot environment to configure your system. configure instruction here
  • Exit chroot environment.
  • Then you should have working LFS system now.
  • Reboot to test it out.

Tested host