Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Those that have decided to take this approach must install the software:
  2. root #emerge --ask sys-boot/efibootmgr
  3.  
  4. Then, create the /boot/efi/boot/ location, and then copy the kernel into this location, calling it bootx64.efi:
  5. root #mkdir -p /boot/efi/boot
  6. root #cp /boot/vmlinuz-* /boot/efi/boot/bootx64.efi
  7.  
  8. Next, tell the UEFI firmware that a boot entry called "Gentoo" is to be created, which has the freshly compiled EFI stub kernel:
  9. root #efibootmgr --create --disk /dev/sda --part 2 --label "Gentoo" --loader "\efi\boot\bootx64.efi"
  10.  
  11. If an initial RAM file system (initramfs) is used, add the proper boot option to it:
  12. root #efibootmgr -c -d /dev/sda -p 2 -L "Gentoo" -l "\efi\boot\bootx64.efi" initrd='\initramfs-genkernel-amd64-3.16.5-gentoo'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement