Selecting a boot loader
나는 GRUB2를 사용할 것이다.
Default: GRUB2
Emerge
먼저 grub을 설치한다.
(chroot) root # echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf
(chroot) root # emerge --ask sys-boot/grub
Install
- grub-install: 필수 GRUB2 파일을 /boot/grub 디렉토리에 설치한다.
(chroot) root # grub-install --target=x86_64-efi --efi-directory=/boot
Configure
- grub-mkconfig: GRUB2 configuration을 생성한다.
(chroot) root #grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-4.9.16-gentoo
Found initrd image: /boot/initramfs-genkernel-amd64-4.9.16-gentoo
done
Rebooting the system
(chroot) root # exit
root ~# cd
root ~# umount -l /mnt/gentoo/dev{/shm,/pts,}
root ~# umount -R /mnt/gentoo
root ~# reboot