Lilo

Revision as of 20:11, September 12, 2014 by Duncan.britton (Talk | contribs)

sys-boot/lilo


Source Repository:Repository:Gentoo Portage Tree


Summary: Standard Linux boot loader

Use Flags

device-mapper
Enable support for device-mapper from sys-fs/lvm2
minimal
Do not install the dolilo helper script
pxeserial
Avoid character echo on PXE serial console

News

Drobbins

IP Space Migration Continues

All Funtoo user containers in the 8.28 IP space will be moving into our new IP space (172.97) over the next few days. If you have DNS set up -- be sure to watch your container and update to the new IP! container.host.funtoo.org DNS will be updated after the move.
2015-08-27 by Drobbins
Drobbins

Funtoo Hosting IP Move

Funtoo user containers with IPs in the 72.18.x.x range will be gradually migrating to new IP addresses this week. If you have DNS entries for your containers, please be aware that your DNS will need to be updated.
2015-08-11 by Drobbins
Drobbins

New ARM Stages

New ARM Stages, built with a new toolchain, are now hitting mirrors. Existing ARM users should re-install using these stages (dated Aug 3, 2015 or later,) rather than upgrade using emerge.
2015-08-06 by Drobbins
More...

Lilo

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Lilo linux loader is a boot loader to load linux, and other operating systems. Lilo is called by default when running make install in kernel source directories.

Installation

Emerge

# emerge lilo

Configure

Lilo's default configuration example has hda references, lets change those to sda recursively using sed.
# sed -i -e 's/hda/sda/' /etc/lilo.conf.example
Now we copy the example configuration to the running configuration.
# cp /etc/lilo.conf.example /etc/lilo.conf

Default OS

To change default booting os.

/etc/lilo.conf
# MBR to install LILO to:
boot = /dev/sda
map = /boot/.map
default = Funtoo

Timeout

To have lilo auto start after a set time.

/etc/lilo.conf
# If you always want to see the prompt with a 15 second timeout:
timeout=150

Silence

For silent kernel decompression at boot:

/etc/lilo.conf
label = Funtoo
	read-only # read-only for checking
	append = "quiet"

alternate init systems

to load an alternate init system, example systemd instead of openrc:

/etc/lilo.conf
label = Funtoo-systemd
	read-only # read-only for checking
	append = "quiet init=/usr/lib/systemd/systemd"

Old Configs

It is a good idea to keep an old image around in case problems crop up in new kernel builds.

/etc/lilo.conf
#image = /boot/bzImage.old
        root = /dev/sda3
        #root = /devices/discs/disc0/part3
        label = funtoo.old
        read-only # read-only for checking#

Kernel Linking

Using symlinks is a good idea to be able to determine if the loader is loading the correct image, and enable tab auto completion to ensure we are loading what we intend to. symlinks remove an easy area to fumble when adjusting configurations.

# ln -s /boot/vmlinuz-version /boot/bzImage
# ln -s /boot/vmlinuz-version.old /boot/bzImage.old
Note

if you do not use make install to copy your kernel to /boot, you must run lilo to load the new kernel images & install lilo to the hard drives mbr

Install

Install lilo to the MBR.

# lilo