Boot Loader Configuration

We talked in Chapter 4 about configuring the boot loader of the system using the boot loader configuration files directly. Here we will quickly use YaST to install a new boot option into the GRUB boot loader for the installation of a new Linux kernel.

We hope that as you move through this chapter you will see there is more than one way to do things in Linux — the easy, the interesting, and the downright hard way. We have concentrated on the easy and the interesting ways throughout the book and will continue to do so.

1. To bring up the Boot Loader Settings screen (see Figure 9-14), select SystemOBoot Loader. Alternatively, from the command line you can type yast2 bootloader. You will see the current bootloader configuration. There are two tabs in this screen, one showing each current boot entry, and one showing the details of how the bootloader is installed.

2. To add a new boot option, select Add. This brings you to a configuration screen that enables you to create a new configuration, either by cloning an existing boot loader entry ("Clone Selected Section''), importing a menu file ("Menu Section'') or by creating a standard Linux, Xen, or Chainloader configuration. To add a standard Linux kernel and initrd entry, choose "Image Section.'' You need a Chainloader configuration if you want to boot a Windows system (see Figure 9-15).

3. Now click the Next button to produce a new configuration.

4. Because this is another Linux kernel being installed, change the kernel and initial ramdisk entries to reflect the newly installed kernel and initial ramdisk by selecting the kernel and initrd lines and changing the location of the kernel image and ramdisk (see Figure 9-16).

5. When you have finished configuring the location of the kernel and initial ramdisk, click OK to return to the boot loader profile list window.

Part II

The boot loader configuration in YaST

The boot loader configuration in YaST


Boot loader settings: creating a new section

Boot loader settings: creating a new section

Filling in the details of the new boot entry

Section Name Use Section Name to spocity die hoot loader section name. The section name must be urcque

Section Settings

Selectino Do not verify File system before Booting .'-ill si:ip all hie system checks,

Optional Kernel Command Line Parameter lees you define additional parameters to pass to Ihe kernel

Kernel Image defines the kernel to boot. Either enter the name direciiy or choose via Browse initial RAM Disk if non-empty, defines Che initial ramdisA; to use Esther enter the path and file name directly or choose by using Browse

Root Device ietsthe device to pass to the kernel M

Boot Loader Settings: Section Management

Section Editor

Section blame ! Test now kernel

Qo not verity Rlesystem before Booting Optional Kernel Command Line Parameter

1 splash-silent

kernel Image

j /booVymlinui-|


initial RAM Disk

|/booi/iniird-2 6.22.13-0.3-detau*


Root Device

[i'dev/sdal |*

yga Mode

AbOtl flK I

If you are happy with the overall look of the profiles, press OK to return to the boot loader configuration window. You can see the entry we just created in the Available Sections part of the configuration list.

To save the configuration, press the Finish key. Your GRUB configuration will be saved and your entry will be available at next boot.

if; If you are using GRUB for booting, the bootloader entries will be written to the file ^ ■ /boot/grub/menu.lst. If you change the details of where the GRUB bootloader itself is installed, GRUB will be rerun by YaST to replace the boot code in the boot record of a partition or in the master boot record.

+1 0

Post a comment