Pizlix: Memory Safe Linux from Scratch
2 days ago
- #linux-from-scratch
- #memory-safety
- #fil-c
- Pizlix is a memory-safe Linux From Scratch (LFS) 12.2 variant with userland compiled using Fil-C.
- The kernel is compiled with Yolo-C, and a GCC copy is installed at `/yolo/bin/gcc` for kernel compilation.
- The C/C++ compiler (`/usr/bin/clang-20`) is compiled with Yolo-C++, with symlinks for common compiler names.
- Building tools like `ld`, `make`, and `ninja` are compiled with Fil-C or Fil-C++.
- Pizlix requires specific setup: a `/mnt/lfs` partition, a swap partition, and an `lfs` user.
- Installation involves cloning the Fil-C GitHub repo and running `sudo ./build.sh`.
- Default configuration includes `sshd`, `seatd`, users `root` and `pizlo`, and DHCP on `eth0`.
- Post-install, run `make-ca -g` as root for HTTPS functionality.
- Supports a memory-safe GUI via Weston.
- Build stages include Pre-LC (Yolo-C toolchain), LC (Fil-C injection), and Post-LC (LFS build with Fil-C).
- Additional stages (Post-LC 2-4) add BLFS components, Wayland/Weston, and GTK 4.
- Fil-C is injected during the second glibc build step (Chapter 8), transitioning from Yolo-C to Fil-C.
- Pre-LC builds tools with `--prefix=/yolo` and symlinks to `/usr` to avoid ABI conflicts.
- LC phase includes Fil-C build, yolo glibc setup, Fil-C binary drop, user glibc build, and libc++ drop.
- Post-LC follows LFS Chapters 8-10 with minor modifications for Fil-C compatibility.