Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Those that have decided to take this approach must install the software:
- root #emerge --ask sys-boot/efibootmgr
- Then, create the /boot/efi/boot/ location, and then copy the kernel into this location, calling it bootx64.efi:
- root #mkdir -p /boot/efi/boot
- root #cp /boot/vmlinuz-* /boot/efi/boot/bootx64.efi
- Next, tell the UEFI firmware that a boot entry called "Gentoo" is to be created, which has the freshly compiled EFI stub kernel:
- root #efibootmgr --create --disk /dev/sda --part 2 --label "Gentoo" --loader "\efi\boot\bootx64.efi"
- If an initial RAM file system (initramfs) is used, add the proper boot option to it:
- 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