Handbook:SPARC/Installation/Bootloader/ko

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:SPARC/Installation/Bootloader and the translation is 100% complete.
SPARC 핸드북
설치
설치 정보
매체 선택
네트워크 설정
디스크 준비
스테이지 3 설치
베이스 시스템 설치
커널 설정
시스템 설정
도구 설치
부트로더 설정
마무리
젠투 활용
포티지 소개
USE 플래그
포티지 기능
초기화 스크립트 시스템
환경 변수
포티지 활용
파일 및 디렉터리
변수
소프트웨어 브랜치 함께 사용하기
추가 도구
꾸러미 저장소 개별 설정
고급 기능
네트워크 설정
시작하기
고급 설정
모듈러 네트워크
무선 네트워크
기능 추가
동적 관리


When selecting a 64-bit profile during installation, then GRUB is the only supported bootloader.

Emerge

GRUB should be correctly configured for the platform automatically based on the profile. To make it explicit, however, specify it using:

root #echo 'GRUB_PLATFORMS="ieee1275"' >> /etc/portage/make.conf
root #emerge --ask --verbose sys-boot/grub

The GRUB software has now been merged to the system, but not yet installed as a bootloader.

Install

GPT

If the disk is partitioned using GPT (the preferred method), then install GRUB to the BIOS boot partition. Presuming the first disk (the one where the system boots from) is /dev/sda, the following commands will do:

root #grub-install --target=sparc64-ieee1275 --recheck /dev/sda
요령
{{{1}}}

Sun partition table

If the disk is partitioned using a Sun partition table instead, GRUB must be installed using blocklists. In this mode, instead of providing the physical disk as an argument, provide the path to the partition on which /boot/grub is mounted.

root #grub-install --target=sparc64-ieee1275 --recheck --force --skip-fs-probe /dev/sda1

Configure

Next, generate the GRUB2 configuration based on the user configuration specified in the /etc/default/grub file and /etc/grub.d scripts. In most cases, no configuration is needed by users as GRUB2 will automatically detect which kernel to boot (the highest one available in /boot/) and what the root file system is. It is also possible to append kernel parameters in /etc/default/grub using the GRUB_CMDLINE_LINUX variable.

To generate the final GRUB2 configuration, run the grub-mkconfig command:

root #grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.16.5-gentoo
Found initrd image: /boot/initramfs-genkernel-sparc-3.16.5-gentoo
done

The output of the command must mention that at least one Linux image is found, as those are needed to boot the system. If an initramfs is used or genkernel was used to build the kernel, the correct initrd image should be detected as well. If this is not the case, go to /boot/ and check the contents using the ls command. If the files are indeed missing, go back to the kernel configuration and installation instructions.

SPARC 부트로더 SILO

이제 Sparc Improved boot LOader SILO를 설치하고 설정할 차례입니다.

root #emerge --ask sys-boot/silo

그 다음 /etc/silo.conf를 만드십시오:

root #nano -w /etc/silo.conf

아래에 silo.conf 파일 내용을 나타냈습니다. 이 책에서 언급한 공간 분할 방식과 kernel-3.16.5-gentoo 커널 이미지, initramfs-genkernel-sparc64-3.16.5-gentoo initramfs를 활용합니다.

파일 /etc/silo.conf예제 설정 파일
partition = 1         # Boot partition (= root partition)
root = /dev/sda1      # Root partition
timeout = 150         # Wait 15 seconds before booting the default section
  
image = /boot/kernel-3.16.5-gentoo
  label = linux
  append = "initrd=/boot/initramfs-genkernel-sparc64-3.16.5-gentoo real_root=/dev/sda1"

포티지로 가져온 silo.conf 예제 파일을 사용할 때, 모든 줄이 필요한건 아니므로 주석처리했는지 확인하십시오.

SILO(부트로더)를 설치하는 물리 디스크와 /etc/silo.conf를 저장하는 물리 디스크가 다르다면, /etc/silo.conf 파일을 부트로더 디스크에 먼저 복사하십시오. 디스크에서 /boot/ 파티션을 따로 나누었다면, /boot/에 파일을 복사하시고 /sbin/silo를 실행하십시오:

root #cp /etc/silo.conf /boot
root #/sbin/silo -C /boot/silo.conf
/boot/silo.conf appears to be valid

아니면 그냥 /sbin/silo를 실행하십시오:

root #/sbin/silo
/etc/silo.conf appears to be valid
참고
업데이트 할 때, 또는 sys-boot/silo 꾸러미를 설치할 때 매번 silo(필요한 경우 매개변수 붙임)를 실행하십시오.


시스템 다시 부팅

chroot로 진입한 환경을 빠져나가고 모든 파티션의 마운트를 해제하십시오. 그 다음 대미를 장식할 마법의 명령을 입력하여, 실제로 시험해보십시오: reboot.

root #exit
cdimage ~#cd
cdimage ~#umount -l /mnt/gentoo/dev{/shm,/pts,}
cdimage ~#umount -R /mnt/gentoo
cdimage ~#reboot

물론 부팅 CD를 제거하는걸 잊지 않으면 새 젠투 시스템 대신 CD로 부팅합니다.

새로 설치한 젠투 환경으로 다시 부팅하고 나면, 젠투 설치 마무리로 끝내십시오.