Handbuch:SPARC/Installation/Bootloader

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 Handbuch
Installation
Über die Installation
Auswahl des Mediums
Konfiguration des Netzwerks
Vorbereiten der Festplatte(n)
Installation des Stage Archivs
Installation des Basissystems
Konfiguration des Kernels
Konfiguration des Systems
Installation der Tools
Konfiguration des Bootloaders
Abschluss
Arbeiten mit Gentoo
Portage-Einführung
USE-Flags
Portage-Features
Initskript-System
Umgebungsvariablen
Arbeiten mit Portage
Dateien und Verzeichnisse
Variablen
Mischen von Softwarezweigen
Zusätzliche Tools
Eigener Portage-Tree
Erweiterte Portage-Features
Netzwerk-Konfiguration
Zu Beginn
Fortgeschrittene Konfiguration
Modulare Vernetzung
Drahtlose Netzwerke
Funktionalität hinzufügen
Dynamisches Management


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

Die GRUB2 Software wurde nun zu dem System hinzugefügt. Sie ist aber noch nicht installiert.

Installation

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
Tip
{{{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

Konfiguration

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.

SILO der SPARC Bootloader

Installieren und konfigurieren Sie jetzt SILO, den Sparc Improved boot LOader.

root #emerge --ask sys-boot/silo

Als Nächstes erstellen Sie /etc/silo.conf:

root #nano -w /etc/silo.conf

Unterhalb wird eine silo.conf Beispieldatei gezeigt. Sie verwendet das Partitions-Schema, das wir im Rahmen dieses Buches verwenden, kernel-3.16.5-gentoo als Kernel Abbild und initramfs-genkernel-sparc64-3.16.5-gentoo als initramfs.

DATEI /etc/silo.confBeispiel Konfigurationsdatei
partition = 1         # Boot Partition (= root Partition)
root = /dev/sda1      # Root Partition
timeout = 150         # Warte 15 Sekunden vor dem Booten des Standardabschnitts
  
image = /boot/kernel-3.16.5-gentoo
  label = linux
  append = "initrd=/boot/initramfs-genkernel-sparc64-3.16.5-gentoo real_root=/dev/sda1"

Falls Sie die silo.conf Beispieldatei verwenden wie sie von Portage ausgeliefert wird, stellen Sie sicher dass Sie alle Zeilen auskommentieren, die nicht benötigt werden.

Wenn die physische Festplatte auf der SILO (als Bootloader) installiert wird eine andere ist, als auf der /etc/silo.conf liegt, dann kopieren Sie zuerst /etc/silo.conf auf eine Partition dieser Festplatte. Wenn /boot/ eine separate Partition auf dieser Festplatte ist, kopieren Sie die Konfigurationsdatei in /boot/ und starten Sie /sbin/silo:

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

Andernfalls starten Sie einfach /sbin/silo:

root #/sbin/silo
/etc/silo.conf appears to be valid
Hinweis
Starten Sie silo jedes mal erneut nach der Aktualisierung oder Installation des Paketes sys-boot/silo (falls notwendig mit Parametern).


Neustart des Systems

Verlassen Sie die chroot-Umgebung und hängen Sie alle gemounteten Partitionen aus. Geben Sie dann den magischen Befehl ein, der den alles entscheidenden Test einleitet - reboot.

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

Vergessen Sie nicht, das Installations-Medium zu entfernen. Andernfalls könnte erneut das Installations-Medium anstelle des neuen Gentoo Systems gebootet werden.

Nach dem Neustart in die neu installierte Gentoo Umgebung können Sie Ihre Installation mit dem Kapitel Abschluss der Gentoo Installation fertigstellen.