Handbook:SPARC/Blocks/Bootloader/ko

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:SPARC/Blocks/Bootloader and the translation is 47% complete.
Outdated translations are marked like this.


GRUB2

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:2

The GRUB2 software has now been merged to the system, but not yet installed.

Install

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
요령
To find the boot device string to enter in the firmware, use the grub-ofpathname tool. If the BIOS boot partition is the first partition on the disk, select the entire disk:
root #grub-ofpathname /dev/sda
Otherwise, explicitly select the BIOS boot partition:
root #grub-ofpathname /dev/sda2

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(필요한 경우 매개변수 붙임)를 실행하십시오.