Update README.md
This commit is contained in:
parent
fab6a7deae
commit
7e351ab44c
1 changed files with 26 additions and 7 deletions
33
README.md
33
README.md
|
@ -1,10 +1,11 @@
|
||||||
# lfs-scripts
|
# lfs-scripts
|
||||||
|
|
||||||
This repo contain scripts to automate LFS build + livecd. This LFS build is using [CRUX](https://crux.nu)'s pkgutils for managing packages and initramfs generator from [Venom Linux](https://venomlinux.org) for livecd initramfs.
|
This repo contain scripts to automate multilib LFS build + livecd. This LFS build is using [CRUX](https://crux.nu)'s pkgutils for managing packages and initramfs generator from [Venom Linux](https://venomlinux.org) for livecd initramfs.
|
||||||
|
|
||||||
#### Requirements
|
#### Requirements
|
||||||
|
|
||||||
* sudo
|
* sudo
|
||||||
|
* wget
|
||||||
* passes lfs version-check.sh test
|
* passes lfs version-check.sh test
|
||||||
* squashfs-tools & libisoburn (optional to create the livecd iso)
|
* squashfs-tools & libisoburn (optional to create the livecd iso)
|
||||||
|
|
||||||
|
@ -26,6 +27,7 @@ This repo contain scripts to automate LFS build + livecd. This LFS build is usin
|
||||||
- dhcpcd
|
- dhcpcd
|
||||||
- wpa_supplicant
|
- wpa_supplicant
|
||||||
- mkinitramfs (taken from Venom Linux, livecd support)
|
- mkinitramfs (taken from Venom Linux, livecd support)
|
||||||
|
- syslinux
|
||||||
- this script resume-able, just re-run the script to continue where you left
|
- this script resume-able, just re-run the script to continue where you left
|
||||||
- created packages can be reused
|
- created packages can be reused
|
||||||
|
|
||||||
|
@ -35,11 +37,28 @@ This repo contain scripts to automate LFS build + livecd. This LFS build is usin
|
||||||
|
|
||||||
* version-check.sh
|
* version-check.sh
|
||||||
- script to check utilities requirements to build lfs
|
- script to check utilities requirements to build lfs
|
||||||
|
|
||||||
|
#### Step
|
||||||
|
|
||||||
#### Note
|
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 password
|
||||||
|
|
||||||
* 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.
|
- 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 livecd)
|
||||||
* If you just wanna create the livecd iso, you can straight run these script without mount partition for lfs.
|
- Prepare your partition for LFS and mount it on `/mnt/lfs` or you can change where LFS build directory in `config` file.
|
||||||
* By default this script build the lfs system in /mnt/lfs directory, so make sure you spare this directory for it.
|
- Optionally modify `config` file to suit your need.
|
||||||
* 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.
|
- Run script `01-toolchain` to build temporary toolchain.
|
||||||
* 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.
|
- 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. [check here](./rootfs/root/README)
|
||||||
|
- Exit chroot environment.
|
||||||
|
- Then you should have working LFS system now.
|
||||||
|
- Reboot to test it out.
|
||||||
|
|
||||||
|
#### Host livecd distro
|
||||||
|
|
||||||
|
- [Artix Linux](https://artixlinux.org/) - require base-devel and wget
|
||||||
|
- [Arya Linux](https://aryalinux.info/) (live environment)
|
||||||
|
- (more will come)
|
||||||
|
|
Loading…
Add table
Reference in a new issue