Skip to content

Pairman's Linux From Scratch Distribution 12.1 for Pairman's own Surface Pro 7+ with CPU, GPU and WiFi microcodes. Copyrights go to their original authors.

Notifications You must be signed in to change notification settings

Pairman/Pairman-LFS-Distro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 

Repository files navigation

Pairman's Linux From Scratch Distribution 12.1 x86_64, supporting only Surface Pro 7+.

Added many packages and features in addition to the LFS and BLFS book, mainly including UEFI support, microcode for CPU, GPU and WLAN, modifications of multiple scripts, mimalloc as the default malloc() library.

This OS is intended to be used only as a toy for educational purposes, configuring and flashing is NOT recommended. Your warranty is now void. You have been warned. Use at your own risk. Files' copyright belongs to their original owners.

It should be extracted under /mnt/distro, with a root partition mounted at /mnt/distro and a standalone efi partition mounted at /mnt/distro/boot/efi on the host system. You need at least 1) modify boot/grub/grub.cfg and regenerate the EFI files under boot/efi, 3) recofigure and recompile the kernel with customized drivers/microcodes and 4) reconfigure the scripts in etc/init.d, etc/udev and etc/sysconfig to make it bootable on other devices. Root password is root.

Hints on setting up host chroot:

# Set up LFS
export LFS="/mnt/lfs"
alias mountlfs="mount -v --bind /dev $LFS/dev; mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts; mount -vt proc proc $LFS/proc; mount -vt sysfs sysfs $LFS/sys; mount -vt tmpfs tmpfs $LFS/run; mount -t tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm"
alias umountlfs="umount $LFS/{dev/shm,dev/pts}; umount $LFS/{sys,proc,run,dev}"
alias chrootlfs="chroot $LFS /usr/bin/env -i HOME=/root TERM='$TERM' PS1='[\u@lfs-chroot \W]\$ ' PATH=/usr/bin:/usr/sbin MAKEFLAGS='-j$(( 2 * $(nproc) ))' TESTSUITEFLAGS='-j$(( 2 * $(nproc) ))' /bin/bash --login"

About

Pairman's Linux From Scratch Distribution 12.1 for Pairman's own Surface Pro 7+ with CPU, GPU and WiFi microcodes. Copyrights go to their original authors.

Resources

Stars

Watchers

Forks