Jump to: navigation, search

UEFI Install Guide

1,453 bytes added, 5 years ago
Configuring GRUB
=== Configuring GRUB ===
OK, now UEFI has the GRUB image it needs to boot. But we still need to configure GRUB itself so it finds and boots your kernel and initramfs. This is done by performing the following steps. Since boot-update doesn't yet support UEFI, we will not use boot-update directly and will create a , but then edit our <ttcode>/boot/grub/grub.cfg</ttcode> file manually that looks like this:to support UEFI booting.
First, you will need to edit <code>/etc/boot.conf</code>. Format this as you would if you were booting without UEFI. If you are not sure how this should look, below is an example of what it could look like if you are booting from an unencrypted ext4 partition: {{file|name=/etc/boot.conf|desc=|body=boot { generate grub default "Funtoo Linux" timeout 3} "Funtoo Linux" { kernel vmlinuz[-v] params += rootfstype=ext4 root=/dev/sda2}}} After you have edited your <code>/etc/boot.conf</code> file, run <code>boot-update</code>. If you check your <code>/boot/grub/grub.cfg</code> now, you should see something like this:  {{file|name=/boot/grub/grub.cfg|desc= |body=
set timeout=3
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod part_gpt insmod fat set root=(hostdisk//dev/sda,gpt1) search --no-floppy --fs-uuid --set 3CFD-6884if loadfont /grub/unifont.pf2; then set gfxmode=text insmod gfxterm insmod vbe terminal_output gfxtermfi set menu_color_normal=cyan/blueset menu_color_highlight=blue/cyan menuentry "Funtoo Linux genkernel - kernelvmlinuz-debian3.16.3" { insmod part_gpt insmod fat set root=(hostdisk//dev/sda,gpt1) search -sources-x86_64no-floppy --fs-uuid --set 3CFD-6884 linux /vmlinuz-3.216.353 video=uvesafb:1920x1080-2" 32,mtrr:3,ywrap rootfstype=ext4 root=/dev/sda2 set gfxpayload=text}set default=0}} To get your <code>/boot/grub/grub.cfg</code> to support booting with UEFI, make your <code>/boot/grub/grub.cfg</code> look like this:{{ file|name=/boot/grub/grub.cfg|desc=|body=set timeout=3  insmod part_gpt insmod fat insmod efi_gop insmod efi_uga set root=(hostdisk//dev/sda,gpt1) search --no-floppy --fs-uuid --set __REPLACE_UUID_OF_SDA1__3CFD-6884 linux if loadfont /grub/unifont.pf2; then set gfxmode=auto insmod gfxterm insmod vbe terminal_output gfxtermfi set menu_color_normal=cyan/blueset menu_color_highlight=blue/kernelcyan menuentry "Funtoo Linux -debian-sources-x86_64vmlinuz-3.216.35-2 real_root3" { insmod part_gpt insmod fat set root=(hostdisk//dev/sda3sda,gpt1) initrd /initramfs search --no-floppy --fs-uuid -debian-sourcesset 3CFD-x86_646884 linux /vmlinuz-3.216.353 video=uvesafb:1920x1080-2 32,mtrr:3,ywrap rootfstype=ext4 root=/dev/sda2 set gfxpayload=keep
set default=0
Note The lines that we have added and altered do the following:* <tt>search</tt> line where it says '''<ttcode>__REPLACE_UUID_OF_SDA1__</tt>''' above. You will need to run '''<tt>blkid /dev/sda1insmod efi_gop</ttcode>''' and use the UUID value that is displayed. For example, on my system, I need to use '''<ttcode>C34B-19CFinsmod efi_uga</ttcode>'''. You can also change : Both of these involve adding support for the <tt>menuentry</tt> line text in quotes UEFI framebuffer to say whatever you want, and the <tt>linux</tt> and <tt>initrd</tt> lines should reference your kernel versions in <tt>/boot</tt>GRUB. As above, use the path * <ttcode>/set gfxmode=auto</ttcode> instead : Instead of <tt>/having the GRUB boot</tt> as option screen being displayed at the path should be relative smallest resolution possible, changing this to auto will make it fit the root resolution of the VFAT filesystemyour display.
== Known Issues ==

Navigation menu