The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Install/BootLoader"
(Created page with "<noinclude> {{Note|This is a template that is used as part of the Installation instructions, which covers boot loader installation. Templates are being used to allow multiple...") |
|||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{ | {{InstallPart|boot loader configuration}} | ||
</noinclude> | </noinclude> | ||
=== Installing a Bootloader === | === Installing a Bootloader === |
Revision as of 05:59, November 12, 2014
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
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 } "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 }
If you use bliss-kernel, your /etc/boot.conf
should look like:
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 }
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.