First we'll exit chroot and copy the lfskernel file to the host system:
logout cp $LFS/boot/lfskernel /boot |
cat >> /etc/lilo.conf << "EOF"
image=/boot/lfskernel
label=lfs
root=<partition>
read-only
EOF |
<partition> must be replaced with the LFS partition's designation.
Now, update the boot loader by running:
/sbin/lilo -v |
The last step is synchronizing the host system's lilo configuration files with the LFS system's:
cp /etc/lilo.conf $LFS/etc && cp $(grep "image.*=" /etc/lilo.conf | cut -f 2 -d "=") $LFS/boot |