새소식

개발+공부/Linux 리눅스

[Gentoo] Gentoo Handbook: Installation (8) Configuring the bootloader

  • -
728x90

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

 

728x90
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.