Show Table of Contents
13.2.3. 准备启动 RAM 磁盘更新
重要
只有在无法使用其他任何方法执行驱动程序更新时才应该考虑这个高级步骤。
Red Hat Enterprise Linux 安装程序可以从内存盘 — 即计算机中暂时作为磁盘使用的内存区域,为之前的安装进程载入更新。可以使用同样的功能载入驱动程序更新。要在安装过程中执行驱动程序更新,计算机必须使用 yaboot 安装服务器引导,同时网络中必须有可用的安装服务器。有关 yaboot 安装服务器的详情请参考 第 30 章 设置安装服务器。
要使驱动程序更新在安装服务器中可用:
- 将驱动程序更新映像文件放在安装服务器中。通常可通过 Red Hat 或者硬件零售商指定的互联网地址下载到 PXE 服务器中。驱动程序更新映像文件名以
.iso结尾。 - 将驱动程序更新映像文件复制到
/tmp/initrd_update目录中。 - 将驱动程序更新映像文件重新命名为
dd.img。 - 使用命令行进入
/tmp/initrd_update目录,输入以下命令并按 Enter:find . | cpio --quiet -o -H newc | gzip -9 >/tmp/initrd_update.img
- 将文件
/tmp/initrd_update.img复制到含有要用来进行安装的对象目录中。这个目录位于/var/lib/tftpboot/yaboot/目录中。例如:/var/lib/tftpboot/yaboot/应包含 Red Hat Enterprise Linux 6 客户端的 yaboot 安装目标。 - 编辑
var/tftpboot/yaboot/yaboot.conf文件使其包含刚刚创建的初始 RAM 磁盘更新条目,格式如下:image=target/vmlinuz label=target-dd initrd=target/initrd.img,target/dd.img
其中 target 是要用来安装的对象。
请参考 第 13.3.4 节 “选择包含驱动程序更新的安装服务器对象” 了解如何在安装过程中使用初始 RAM 磁盘更新。
例 13.1. 使用驱动程序更新映像文件准备初始 RAM 磁盘更新
在这个示例中,
driver_update.iso 是从互联网下载到 PXE 服务器中的驱动程序更新映像文件。需要使用安装服务器进行引导的对象位于 /var/lib/tftpboot/yaboot/rhel6/。
使用命令行进入含有该文件的目录并输入以下命令:
$ cp driver_update.iso /tmp/initrd_update/dd.img $ cd /tmp/initrd_update $ find . | cpio --quiet -c -o -H newc | gzip -9 >/tmp/initrd_update.img $ cp /tmp/initrd_update.img /tftpboot/yaboot/rhel6/dd.img
编辑
var/tftpboot/yaboot/yaboot.conf/ 文件并使其包含以下条目:
image=rhel6/vmlinuz label=rhel6-dd initrd=rhel6/initrd.img,rhel6/dd.img

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.