diff --git a/lfs-notes/misc/registered.png b/lfs-notes/misc/registered.png new file mode 100644 index 0000000..dc3a454 Binary files /dev/null and b/lfs-notes/misc/registered.png differ diff --git a/lfs-notes/p4_building_the_lfs_system/c10_making_system_bootable/c10_notes.md b/lfs-notes/p4_building_the_lfs_system/c10_making_system_bootable/c10_notes.md index bbd5ac7..5edcaf7 100644 --- a/lfs-notes/p4_building_the_lfs_system/c10_making_system_bootable/c10_notes.md +++ b/lfs-notes/p4_building_the_lfs_system/c10_making_system_bootable/c10_notes.md @@ -58,6 +58,18 @@ then install the kernel's documentation. ``` cp -r Documentation -T /usr/share/doc/linux-6.10.5 ``` +In a virtual machine, this probably isn't necessary, but let's make sure that USB drivers are ready, +``` +install -v -m755 -d /etc/modprobe.d +cat > /etc/modprobe.d/usb.conf << "EOF" +# Begin /etc/modprobe.d/usb.conf + +install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true +install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true + +# End /etc/modprobe.d/usb.conf +EOF +``` ## Section 10.4 - Using GRUB and its Configuration We need to install grub on our hard drive device. In this case, I have been working on separate hard drive device presented to the VM. The first ~500MB of that device was left unformatted to be available for GRUB. ``` diff --git a/lfs-notes/p4_building_the_lfs_system/c11_the_end/c11_notes.md b/lfs-notes/p4_building_the_lfs_system/c11_the_end/c11_notes.md new file mode 100644 index 0000000..3f5d973 --- /dev/null +++ b/lfs-notes/p4_building_the_lfs_system/c11_the_end/c11_notes.md @@ -0,0 +1,50 @@ +# Chapter 11 - The End! +## Sections 11.1 - Write Systems Info +It would be a good idea to write a few files ... +Like the LFS version, +``` +echo 12.2 > /etc/lfs-release +``` +our "Linux Standard Base" info, +``` +cat > /etc/lsb-release << "EOF" +DISTRIB_ID="Linux From Scratch" +DISTRIB_RELEASE="12.2" +DISTRIB_CODENAME="Shaun's LFS" +DISTRIB_DESCRIPTION="Linux From Scratch" +EOF +``` +and our "distro" info, +``` +cat > /etc/os-release << "EOF" +NAME="Linux From Scratch" +VERSION="12.2" +ID=lfs +PRETTY_NAME="Linux From Scratch 12.2" +VERSION_CODENAME="Shaun's LFS - 20240124" +HOME_URL="https://www.linuxfromscratch.org/lfs/" +EOF +``` +## Section 11.2 - Getting Counted +Follow [this link](https://www.linuxfromscratch.org/cgi-bin/lfscounter.php) to get counted! +Hopefully this picture comes through ... +![Counted!](../../misc/registered.png) +## Section 11.3 - Reboot the System +Finally ... logout. +``` +logout +``` +Unmount the virtual filesystems, +``` +umount -v $LFS/dev/pts +mountpoint -q $LFS/dev/shm && umount -v $LFS/dev/shm +umount -v $LFS/dev +umount -v $LFS/run +umount -v $LFS/proc +umount -v $LFS/sys +``` +Unmount the physical filesystems, +``` +umount -v $LFS/home +umount -v $LFS +```