Renuncia de responsabilidad:
Este manual ha sido sustituido por una versión más reciente y no tendrá
soporte de aquí en adelante.
|
[ << ]
[ < ]
[ Inicio ]
[ > ]
[ >> ]
10. Configuring the Bootloader
Contenido:
10.a. Making your Choice
Introduction
Now that your kernel is configured and compiled and the necessary system
configuration files are filled in correctly, it is time to install a
program that will fire up your kernel when you start the system. Such a
program is called a bootloader. But before you start, consider
your options...
Several bootloaders exist for Linux/PPC. We have yaBoot
(for NewWorld Apple and IBM machines) and BootX (for
OldWorld Apple and IBM machines). The Pegasos does not require a bootloader.
You cannot use yaBoot or BootX on them at this time. Pegasos users should
therefore continue with Rebooting the System.
10.b. Default: Using yaBoot
Introduction
Importante:
yaBoot can only be used on NewWorld Apple and IBM systems!
|
There are two ways to configure yaBoot for your system. You can use the
included yabootconfig to automatically set up yaboot. If
for some reason you do not want to run yabootconfig to
automatically set up /etc/yaboot.conf or you are installing Gentoo
on a G5 (on which yabootconfig does not always work), you can just edit
the sample file already installed on your system.
Default: Using yabootconfig
yabootconfig will auto-detect the partitions on your machine and will
set up dual and triple boot combinations with Linux, Mac OS, and Mac OS X.
To use yabootconfig, your drive must have a bootstrap partition, and
/etc/fstab must be configured with your Linux partitions. Both of
these should have been done already in the steps above. To start, ensure that
you have the latest version of yaboot installed by running emerge --update
yaboot. This is necessary as the latest version will be available via
Portage, but it may not have made it into the stage files.
Listado de Código 2.1: Installing yaboot |
# emerge --usepkg --update yaboot
|
Now exit the chroot and run yabootconfig --chroot /mnt/gentoo. The program will run and it will confirm
the location of the bootstrap partition. Type Y if it is correct. If
not, double check /etc/fstab. yabootconfig will then scan your
system setup, create /etc/yaboot.conf and run mkofboot for
you. mkofboot is used to format the bootstrap partition, and install
the yaboot configuration file into it.
After this enter the chroot again.
Listado de Código 2.2: enter chroot |
# chroot /mnt/gentoo /bin/bash
# /usr/sbin/env-update && source /etc/profile
|
You might want to verify the contents of /etc/yaboot.conf. If
you make changes to /etc/yaboot.conf (like setting the
default/boot OS), make sure to rerun ybin -v to apply changes to the
bootstrap partition.
Now continue with Rebooting the System.
Alternative: Manual yaBoot Configuration
First make sure you have the latest yaboot installed on your
system:
Listado de Código 2.3: Installing yaboot |
# emerge --usepkg --update yaboot
|
Below you find a completed yaboot.conf file. Alter it at
will. G5 users should be aware that their disks are Serial ATA disks which are
seen as SCSI disks by the Linux kernel (so substitute /dev/hda with
/dev/sda).
Listado de Código 2.4: /etc/yaboot.conf |
boot=/dev/hda1
device=hd:
partition=3
delay=5
defaultos=macosx
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
image=/boot/kernel-2.6.7
label=Linux
root=/dev/hda3
sysmap=/boot/System.map-2.6.7
read-only
macos=/dev/hda13
macosx=/dev/hda12
enablecdboot
enableofboot
|
Once yaboot.conf is set up the way you want it, you run
mkofboot -v to install the settings in the bootstrap partition. Don't
forget this! If all goes well, and you have the same options as the sample
above, your next reboot will give you a simple, five-entry boot menu. If you
update your yaboot config later on, you'll just need to run ybin -v to
update the bootstrap partition - mkofboot is for initial setup only.
For more information on yaboot, take a look at the yaboot project. For
now, continue the installation with Rebooting the
System.
10.c. Alternative: BootX
Importante:
BootX can only be used on OldWorld Apple and IBM systems!
|
BootX requires that you reboot first. So, let's reboot shall we :)
First exit the chrooted environment and unmount all mounted partitions, then
type in the one magical command you have been waiting for: reboot.
Listado de Código 3.1: Exiting the chroot, unmounting all partitions and rebooting |
# exit
cdimage ~# cd
cdimage ~# umount /mnt/gentoo/proc /mnt/gentoo
cdimage ~# reboot
|
Of course, don't forget to remove the bootable CD, otherwise the CD will be
booted again instead of Mac OS X.
Now your machine is booted in MacOS, open the BootX control panel. Select
Options and uncheck Used specified RAM disk. When you return to
the BootX main screen, you will now find an option to specify your machine's
root disk and partition. Fill these in with the appropriate values.
BootX can be configured to start Linux upon boot. If you do this, you will first
see your machine boot into MacOS then, during startup, BootX will load and start
Linux. See the BootX home
page for more information.
Now reboot again and boot into Linux, then continue with Finalizing your Gentoo Installation.
10.d. Rebooting the System
Exit the chrooted environment and unmount all mounted partitions. Then type in
that one magical command you have been waiting for: reboot.
Listado de Código 4.1: Exiting the chroot, unmounting all partitions and rebooting |
# exit
cdimage ~# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
cdimage ~# reboot
|
Of course, don't forget to remove the bootable CD, otherwise the CD will be
booted again instead of your new Gentoo system.
Once rebooted in your Gentoo installation, finish up with Finalizing your Gentoo Installation.
[ << ]
[ < ]
[ Inicio ]
[ > ]
[ >> ]
El contenido de este documento, a no ser que se especifique
expresamente, está registrado bajo los términos de la licencia
CC-BY-SA-2.5. Se aplican las
Pautas de
Utilización del logotipo y nombre de Gentoo.
|