This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
手册:IA64/安装/配置系统引导程序Bootloader
IA64 Handbook |
---|
安装 |
关于安装 |
选择安装媒介 |
配置网络 |
准备磁盘 |
安装stage3 |
安装基本系统 |
配置Linux内核 |
配置系统 |
安装系统工具 |
配置系统引导程序Bootloader |
收尾安装工作 |
使用Gentoo |
Portage介绍 |
USE标记 |
Portage功能特性 |
初始化脚本(Initscript)系统 |
环境变量 |
使用Portage |
文件和目录 |
变量 |
混合使用不同的软件分支 |
额外的工具 |
定制Portage树 |
高级特性 |
网络配置 |
入门 |
高级配置 |
模块化网络 |
无线 |
添加功能 |
动态管理 |
Installing elilo
On the IA64 platform, the boot loader is called elilo. First install the software on the system:
root #
emerge --ask sys-boot/elilo
Its configuration file is called /etc/elilo.conf and a sample file is installed in the typical docs directory (/usr/share/doc/elilo-<version>/). Here is another sample configuration:
/etc/elilo.conf
Example elilo configurationboot=/dev/sda1 delay=30 timeout=50 default=Gentoo append="console=ttyS0,9600" prompt image=/vmlinuz label=Gentoo root=/dev/sda3 read-only image=/vmlinuz.old label=Gentoo.old root=/dev/sda3 read-only
The boot line tells elilo the location of the boot partition (in this case, /dev/sda1). The delay line sets the number of 10th of seconds before automatically booting the default when in non-interactive mode. The timeout line is just like the delay line but for interactive mode. The default line sets the default kernel entry (which is defined below). The append line adds extra options to the kernel command line. The prompt sets the default elilo behavior to interactive.
The sections that start with image define different bootable images. Each image has a nice label, a root filesystem, and will only mount the root filesystem read-only.
If, while building the Linux kernel, an initramfs was also configured to boot from, then it is necessary to change the configuration by referring to this initramfs file and telling the initramfs where the root device is at:
/etc/elilo.conf
Updated configuration to reflect use of initramfsimage=/vmlinuz label=Gentoo initrd=/initramfs-genkernel-ia64-3.16.5-gentoo append="initrd=initramfs-genkernel-ia64-3.16.5-gentoo root=/dev/sda3 console=ttyS0,9600" read-only
When the configuration is done, run elilo --efiboot. The --efiboot
option adds a menu entry for Gentoo Linux to the EFI Boot Manager:
root #
elilo --efiboot
重启系统
退出chroot环境并unmount全部已持载分区。然后敲入一条有魔力的命令来初始化最终的、真实的测试:reboot。
root #
exit
cdimage ~#
cd
cdimage ~#
umount -l /mnt/gentoo/dev{/shm,/pts,}
cdimage ~#
umount -R /mnt/gentoo
cdimage ~#
reboot
当然,别忘了移除可引导CD,否则可能再次从CD启动,而不是新的Gentoo系统。
当重启进全新安装的Gentoo环境,继续完成结束Gentoo安装。