Default username:password for the proof of concept is lfs:lfs Packages installed within the proof of concept are listed in the packages file. In total 54 packages from BLFS were installed
This ISO is compatible with both EFI and BIOS Legacy Bios boot.
A Live ISO Guide/Build Script for Linux From Scratch
For some reason, the initramfs is 343 MB so you might have to give it a minute to load the initrd. I didn't have time to look further into it but this is on the top of the list
This is a preamble before the full hand built ISO instructions are written
-
Build an LFS system (sysv or systemd) and continue as far as you want with BLFS in a chroot. (This can be done with jhalfs or by hand)
-
Rebuild libffi to work with any x86_64 CPU by running the configure with the march CFLAG.
CFLAGS=-march=core2 ./configure --prefix=/usr --disable-static --with-gcc-arch=core2 --disable-exec-static-tramp
-
Rebuild GMP to work with any CPU by running the commands in the note before building
cp -v configfsf.guess config.guess && cp -v configfsf.sub config.sub
-
If the system was booted, remove the unique identifiers TBD
-
Make sure to build ther kernel, cpio, and grub with EFI support within the chroot
-
Delete /etc/fstab (the initrd will mounting root)
-
BACKUP the chroot before proceeding
-
Change the name of the kernel image in /boot to match this format vmlinuz-$KERNEL_VER ie vmlinuz-6.4.4, DO NOT install an initrd.
-
Change the paths and kernel version in the make-iso.sh script
-
Run the make-iso.sh script
-
Verify that everything went well and attempt to boot the ISO within QEMU.
- squashfs-tools
- mtools
- sudo
- dosfstools
- libisoburn
- cpio
- grub-efi
- NetworkManager
- PAM
- sudo
The script pre-installs linux-firmware onto the system for the best compatibility. Currently, you still need an internet connection to view and build the book., Although you can view the book through lynx or links and copy paste using GPM.