7.14. Lilo-22.7.1

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc2-x86_64-Pure64

### Chapter 7. If You Are Going to Boot

- Prev

  Bin86-0.16.17

- Next

  Setting Up the Environment

- Up.
- Home

# 7.14. Lilo-22.7.1

The Lilo package contains the Linux Loader, a bootloader.

We have chosen to use Lilo because at the moment no other bootloader builds and runs on a pure64 system. If your machine has multiple systems (i.e. x86 or multilib) you may prefer to use the bootloader from the other system, such as GRUB.

## 7.14.1. Installation of Lilo

The following patch forces Lilo to use our cross-compiler (except for a couple of utilities which run during the compile), and to look for as86 and ld86 under the names by which we installed them.

    patch -Np1 -i ../lilo-22.7.1-cross_compile_x86_64-1.patch

Compile the program which installs the loader, linking it statically so that it does not have to link to host libraries when it runs:

    make lilo-static

Install only the parts we need:

    install -v -m755 lilo-static /tools/bin
    install -v -m755 keytab-lilo.pl /tools/bin

Details on this package are located in Section 10.55.2, “Contents of Lilo.”

- Prev

  Bin86-0.16.17

- Next

  Setting Up the Environment

- Up.
- Home.