diff options
Diffstat (limited to 'chapter08/lilo.xml')
-rw-r--r-- | chapter08/lilo.xml | 80 |
1 files changed, 24 insertions, 56 deletions
diff --git a/chapter08/lilo.xml b/chapter08/lilo.xml index 6abec4e89..c6c20b629 100644 --- a/chapter08/lilo.xml +++ b/chapter08/lilo.xml @@ -1,86 +1,54 @@ <sect1 id="ch08-lilo"> <title>Making the LFS system bootable</title> -<para> -In order to being able to boot the LFS system, we need to update our +<para>In order to being able to boot the LFS system, we need to update our bootloader. We're assuming that your host system is using Lilo (since -that's the most commonly used boot loader at the moment). -</para> +that's the most commonly used boot loader at the moment).</para> -<para> -We will not be running the lilo program inside chroot. Running lilo +<para>We will not be running the lilo program inside chroot. Running lilo inside chroot can have fatal side-effects which render your MBR useless and you'd need a boot disk to be able to start any Linux system (either -the host system or the LFS system). -</para> +the host system or the LFS system).</para> -<para> -First we'll exit chroot and copy the lfskernel file to the host system: -</para> +<para>First we'll exit chroot and copy the lfskernel file to the host +system:</para> -<para> -<screen> -<userinput>logout</userinput> -<userinput>cp $LFS/boot/lfskernel /boot</userinput> -</screen> -</para> +<para><screen><userinput>logout</userinput> +<userinput>cp $LFS/boot/lfskernel /boot</userinput></screen></para> -<para> -The next step is adding an entry to /etc/lilo.conf so that we can -choose LFS when booting the computer: -</para> +<para>The next step is adding an entry to /etc/lilo.conf so that we can +choose LFS when booting the computer:</para> -<para> -<screen> -<userinput>cat >> /etc/lilo.conf << "EOF"</userinput> +<para><screen><userinput>cat >> /etc/lilo.conf << "EOF"</userinput> image=/boot/lfskernel label=lfs root=<partition> read-only -<userinput>EOF</userinput> -</screen> -</para> +<userinput>EOF</userinput></screen></para> -<para> -<partition> must be replaced by the LFS partition's designation. -</para> +<para><partition> must be replaced by the LFS +partition's designation.</para> -<para> -Now the boot loader gets updated by running: -</para> +<para>Now the boot loader gets updated by running:</para> -<para> -<screen> -<userinput>/sbin/lilo</userinput> -</screen> -</para> +<para><screen><userinput>/sbin/lilo</userinput></screen></para> -<para> -The last step is syncing the host system lilo config. files with the -LFS system: -</para> +<para>The last step is syncing the host system lilo config. files with the +LFS system:</para> -<para> -<screen> -<userinput>cp /etc/lilo.conf $LFS/etc &&</userinput> -<userinput>cp <kernel images> $LFS/boot</userinput> -</screen> -</para> +<para><screen><userinput>cp /etc/lilo.conf $LFS/etc &&</userinput> +<userinput>cp <kernel images> $LFS/boot</userinput></screen></para> -<para> -To find out which kernel images files are being used, look at the +<para>To find out which kernel images files are being used, look at the /etc/lilo.conf file and find the lines starting with <emphasis>image=</emphasis>. If your host system has kernel files in other places than the /boot directory, make sure you update the paths in the $LFS/etc/lilo.conf file so that it does look for them in the -/boot directory. -</para> +/boot directory.</para> -<para> -As soon as we have booted into LFS we can run +<para>As soon as we have booted into LFS we can run <userinput>/sbin/lilo</userinput> from the LFS system in order to have -the latest Lilo version in the MBR. -</para> +the latest Lilo version in the MBR.</para> </sect1> |