Show Table of Contents
30.2.3. 為 Power Systems Servers 進行配置
- 如果您尚未安裝 tftp-server,請執行
yum install tftp-server。 - 在
/etc/xinet.d/tftp裡的 tftp-server 配置檔案中,請將disabled參數從yes改為no。 - 配置 DHCP 伺服器使用開機映像檔(包含 yaboot)。(如果您沒有 DHCP 伺服器,請參閱《Red Hat Enterprise Linux 建置指南‧DHCP 伺服器》。
/etc/dhcp/dhcpd.conf的範例配置看起來像:host bonn { filename "yaboot"; next-server 10.32.5.1; hardware ethernet 00:0e:91:51:6a:26; fixed-address 10.32.5.144; } - 您現在需要 ISO 映像檔中
yaboot套件的yaboot檔案。要存取這檔案,請以 root 身分執行以下指令:mkdir /publicly_available_directory/yaboot-unpackmount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,rocp -pr /mount_point/Packages/yaboot-version.ppc.rpm /publicly_available_directory/yaboot-unpack解開套件:cd /publicly_available_directory/yaboot-unpackrpm2cpio yaboot-version.ppc.rpm | cpio -dimv - 在
tftpboot中建立yaboot目錄,並將yaboot的執行檔複製至此目錄:mkdir /var/lib/tftpboot/yabootcp publicly_available_directory/yaboot-unpack/usr/lib/yaboot/yaboot /var/lib/tftpboot/yaboot - 新增名為
yaboot.conf的配置檔到這目錄中。範例配置檔如下:init-message = "\nWelcome to the Red Hat Enterprise Linux 6 installer!\n\n" timeout=60 default=rhel6 image=/rhel6/vmlinuz-RHEL6 label=linux alias=rhel6 initrd=/rhel6/initrd-RHEL6.img append="repo=http://10.32.5.1/mnt/archive/redhat/released/RHEL-6/6.x/Server/ppc64/os/" read-only欲知指定安裝來源的指示,請參閱〈節 7.1.3, “額外開機選項”〉。 - 從解開的 ISO 複製開機映像檔到
tftp根目錄:cp /mount_point/images/ppc/ppc64/vmlinuz /var/lib/tftpboot/yaboot/rhel6/vmlinuz-RHEL6cp /mount_point/images/ppc/ppc64/initrd.img /var/lib/tftpboot/yaboot/rhel6/initrd-RHEL6.img - 藉由移除
yaboot-unpack目錄並卸載 ISO 來進行清除:rm -rf /publicly_available_directory/yaboot-unpackumount /mount_point - 重新開機,在提示符號出現時,選擇網路裝置作為開機裝置。

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.