Gentoo Logo

[ << ] [ < ] [ Home ] [ > ] [ >> ]


10. Configuring the Bootloader

Content:

10.a. Making your Choice

Introduction

Now that your kernel is configured and compiled and the necessary system configuration files are filled in correctly, it is time to install a program that will fire up your kernel when you start the system. Such a program is called a bootloader.

Now, you should install the elilo bootloader.

10.b. Default: Installing elilo

On the IA64 platform, the boot loader is called elilo. You may need to emerge it on your machine first.

Code Listing 2.1: Installing elilo

# emerge elilo

You can find the configuration file at /etc/elilo.conf and a sample file in the typical docs dir /usr/share/doc/elilo-<ver>/. Here is another sample configuration:

Code Listing 2.2: /etc/elilo.conf example

boot=/dev/sda1
delay=30
timeout=50
default=Gentoo
append="console=ttyS0,9600"
prompt

image=/vmlinuz
	label=Gentoo
	root=/dev/sda2
	read-only

image=/vmlinuz.old
	label=Gentoo.old
	root=/dev/sda2
	read-only

The boot line tells elilo the location of the boot partition (in this case, /dev/sda1). The delay line sets the number of 10th of seconds before automatically booting the default when in non-interactive mode. The timeout line is just like the delay line but for interactive mode. The default line sets the default kernel entry (which is defined below). The append line adds extra options to the kernel command line. The prompt sets the default elilo behavior to interactive.

The sections that start with image define different bootable images. Each image has a nice label, a root filesystem, and will only mount the root filesystem read-only.

If, while building the Linux kernel, you opted to include an initramfs to boot from, then you will need to change the configuration by referring to this initramfs file and telling the initramfs where your real root device is at:

Code Listing 2.3: ELILO snippet for initramfs-enabled kernel-builds

image=/vmlinuz
	label=Gentoo
	initrd=/initramfs-genkernel-ia64-3.3.8-gentoo
	append = "initrd=initramfs-genkernel-ia64-3.3.8-gentoo real_root=/dev/sda2 console=ttyS0,9600"
	read-only

When configuration is done, just run elilo --efiboot. The --efiboot option adds a menu entry for Gentoo Linux to the EFI Boot Manager.

Code Listing 2.4: Applying the elilo configuration

# elilo --efiboot

Now continue with Rebooting the System.

10.c. Rebooting the System

Exit the chrooted environment and unmount all mounted partitions. Then type in that one magical command you have been waiting for: reboot.

Code Listing 3.1: Unmounting all partitions and rebooting

# exit
cdimage ~# cd
cdimage ~# umount -l /mnt/gentoo/dev{/pts,/shm,}
cdimage ~# umount /mnt/gentoo{/boot,/sys,/proc,}
cdimage ~# reboot

Of course, don't forget to remove the bootable CD, otherwise the CD will be booted again instead of your new Gentoo system.

When you reboot you should see a new Gentoo Linux menu option in the EFI Boot Manager which will boot Gentoo.

Once rebooted in your Gentoo installation, finish up with Finalizing your Gentoo Installation.


[ << ] [ < ] [ Home ] [ > ] [ >> ]


Print

View all

Page updated August 17, 2014

Summary: The ia64 architecture uses the elilo bootloader. This chapter explains how to install and configure elilo.

Sven Vermeulen
Author

Grant Goodyear
Author

Roy Marples
Author

Daniel Robbins
Author

Chris Houser
Author

Jerry Alexandratos
Author

Seemant Kulleen
Gentoo x86 Developer

Tavis Ormandy
Gentoo Alpha Developer

Jason Huebel
Gentoo AMD64 Developer

Guy Martin
Gentoo HPPA developer

Tim Yamin
Gentoo IA64 developer

Pieter Van den Abeele
Gentoo PPC developer

Joe Kallar
Gentoo SPARC developer

Mike Frysinger
Gentoo * developer

John P. Davis
Editor

Pierre-Henri Jondot
Editor

Eric Stockbridge
Editor

Rajiv Manglani
Editor

Jungmin Seo
Editor

Stoyan Zhekov
Editor

Jared Hudson
Editor

Colin Morey
Editor

Jorge Paulo
Editor

Carl Anderson
Editor

Jon Portnoy
Editor

Zack Gilburd
Editor

Jack Morgan
Editor

Benny Chuang
Editor

Erwin
Editor

Joshua Kinard
Editor

Stuart Longland
Editor

Tobias Scherbaum
Editor

Xavier Neys
Editor

Joshua Saddler
Editor

Gerald J. Normandin Jr.
Reviewer

Donnie Berkholz
Reviewer

Ken Nowack
Reviewer

Lars Weiler
Contributor

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.