Difference between revisions of "Install/BootLoader"

From Funtoo
Jump to navigation Jump to search
Line 31: Line 31:
         # params += nomodeset
         # params += nomodeset
}
}
"Funtoo Linux genkernel" {
# if you use bliss-kernel package
# you should change string
# kernel kernel[-v]
# to
# kernel kernel/[-v]/kernel[-v]
        kernel kernel[-v]
        initrd initramfs[-v]
        params += real_root=auto
        # params += nomodeset
}
</pre>
If you use bliss-kernel, your <code>/etc/boot.conf</code> should look like:
<pre>
boot {
        generate grub
        default "Funtoo Linux genkernel"
        timeout 3
}
"Funtoo Linux" {
        kernel bzImage[-v]
        # params += nomodeset
}
"Funtoo Linux genkernel" {
        kernel kernels/[-v]/kernel[-v]
        initrd initramfs[-v]
        params += real_root=auto
        # params += nomodeset
}
</pre>
</pre>



Revision as of 06:13, November 12, 2014


   Note

This is a template that is used as part of the Installation instructions which covers: boot loader configuration. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.


Installing a Bootloader

   Note

An alternate boot loader called extlinux can be used instead of GRUB if you desire. See the extlinux Guide for information on how to do this.

Installing Grub

The boot loader is responsible for loading the kernel from disk when your computer boots. For new installations, GRUB 2 and Funtoo's boot-update tool should be used as a boot loader. GRUB supports both GPT/GUID and legacy MBR partitioning schemes.

To use this recommended boot method, first emerge boot-update. This will also cause grub-2 to be merged, since it is a dependency of boot-update. (You may need to adjust GRUB_PLATFORMS if you are on a UEFI system. See UEFI Install Guide).

(chroot) # emerge boot-update

Then, edit /etc/boot.conf and specify "Funtoo Linux genkernel" as the default setting at the top of the file, replacing "Funtoo Linux".

/etc/boot.conf should now look like this:

boot {
        generate grub
        default "Funtoo Linux genkernel"
        timeout 3 
}

"Funtoo Linux" {
        kernel bzImage[-v]
        # params += nomodeset
}

Please read man boot.conf for further details.

Running grub-install and boot-update

Finally, we will need to actually install the GRUB boot loader to your disk, and also run boot-update which will generate your boot loader configuration file:

(chroot) # grub-install --no-floppy /dev/sda
(chroot) # boot-update

Now you need to update your boot loader configuration file:

(chroot) # boot-update

You only need to run grub-install when you first install Funtoo Linux, but you need to re-run boot-update every time you modify your /etc/boot.conf file, so your changes are applied on next boot.