Reached the end. Troubleshooting now.

This commit is contained in:
Shaun Setlock
2025-01-24 20:30:01 -05:00
parent 7cb9acf7fe
commit b27adb4342
3 changed files with 62 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -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.
```

View File

@@ -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
```