Show Table of Contents
章 3. 安裝和開機
3.1. 安裝程式
Red Hat Enterprise Linux 安裝程式 Anaconda 已增強,以便改善 Red Hat Enterprise Linux 7 的安裝程序。
介面
- 圖形安裝程式介面現在包含了一個額外畫面,此畫面能配置進行安裝程序時的 Kdump kernel 當機傾印機制。先前這是在安裝完成後透過使用 firstboot 工具程式來進行配置的,然而在沒有圖形介面的情況下將無法存取這項工具程式。現在,您可在一部沒有圖形環境的系統上,在進行安裝程序時配置 Kdump。新的畫面能透過主要的安裝程式選單(安裝概要)來存取。

圖形 3.1. 新的 Kdump 畫面
- 手動磁碟分割的畫面已重新設計,根據使用者經驗進行了改善。部分控制已被移至畫面上不同的位置。

圖形 3.2. 重新設計的手動磁碟分割畫面
- 您現在已可在安裝程式的「網路 & 主機名稱」畫面中配置網路橋接。若要這麼做,請點選介面卡清單下方的「+」按鈕,從選單中選擇「橋接」,並在之後出現的「編輯橋接連線」對話方塊中配置橋接。這個對話方塊是由 NetworkManager 所提供的,並且完整記載於《Red Hat Enterprise Linux 7.1 網路指南》中。橋接配置上也新增了幾項 Kickstart 選項。詳情請查看以下部分。
- 安裝程式已不再使用多重主控台來顯示日誌。現在所有日誌皆位於 tmux 面板的虛擬主控台 1(
tty1)之中。若要在進行安裝程序時存取日誌,請按下 Ctrl+Alt+F1 來切換至 tmux,然後使用 Ctrl+b X 來在不同視窗之間進行切換(將 X 替換為顯示在畫面下方的特定視窗編號)。若要切換回圖形介面,請按下 Ctrl+Alt+F6。 - Anaconda 的指令列介面現在已包含了完整的說明。若要檢視它,請在一部安裝了 anaconda 套件的系統上使用
anaconda -h指令。指令列介面能讓您在一部已完成安裝的系統上執行安裝程式,這對於磁碟映像安裝非常有幫助。
Kickstart 指令和選項
logvol指令包含了新選項:--profile=。請使用這項選項來指定精簡邏輯卷冊的配置設定檔案名稱。若使用了這項指令,該名稱也會被包含在邏輯卷冊的 metadata 中。就預設值,可用的設定檔案為default和thin-performance,並且定義於/etc/lvm/profile目錄中。欲取得額外資訊,請參閱lvm(8)man page。- The behavior of the
--size=and--percent=options of thelogvolcommand has changed. Previously, the--percent=option was used together with--growand--size=to specify how much a logical volume should expand after all statically-sized volumes have been created.Starting with Red Hat Enterprise Linux 7.1,--size=and--percent=can not be used on the samelogvolcommand. autostepKickstart 指令的--autoscreenshot選項已修正,並且現在已能正確將各個畫面的截圖(當退出該畫面時)儲存到/tmp/anaconda-screenshots目錄中。在安裝程序完成後,這些截圖將會被移入/root/anaconda-screenshots中。liveimg指令現在已支援從 tar 檔案和磁碟映像檔進行安裝。tar 壓縮檔案必須包含安裝媒介的 root 檔案系統,並且檔案名稱必須以.tar、.tbz、.tgz、.txz、.tar.bz2、.tar.gz,或是.tar.xz作為結尾。network指令已加入了幾項新選項,以配置網路橋接。這些選項有:--bridgeslaves=:當使用了此選項時,使用--device=選項指定了裝置名稱的網路橋接將會被建立,並且定義於--bridgeslaves=選項中的裝置將會被新增至橋接上。例如:network --device=bridge0 --bridgeslaves=em1--bridgeopts=:這是個選用性、以逗號區隔開的一列橋接介面卡參數。可用的值有stp、priority、forward-delay、hello-time、max-age以及ageing-time。欲取得更多有關於這些參數的相關資訊,請參閱nm-settings(5)man page。
autopart指令包含了一個新選項--fstype。此選項能讓您在 Kickstart 檔案中使用自動磁碟分割時,更改預設的檔案系統類型(xfs)。- Several new features were added to Kickstart for better container support. These features include:
repo --install:這項新選項會將軟體庫配置儲存在已安裝系統上的/etc/yum.repos.d/目錄中。若沒使用此選項,配置在 Kickstart 檔案中的軟體庫將僅能在進行安裝程序時使用,而無法在已安裝的系統上使用。bootloader --disabled:此選項能避免安裝開機載入程式。%packages --nocore:Kickstart 檔案的%packages部分的新選項,它能防止系統安裝@core套件群組。這能讓您進行極小型的安裝搭配 container 使用。
Please note that the described options are only useful when combined with containers, and using the options in a general-purpose installation could result in an unusable system.
Entropy Gathering for LUKS Encryption
- If you choose to encrypt one or more partitions or logical volumes during the installation (either during an interactive installation or in a Kickstart file), Anaconda will attempt to gather 256 bits of entropy (random data) to ensure the encryption is secure. The installation will continue after 256 bits of entropy are gathered or after 10 minutes. The attempt to gather entropy happens at the beginning of the actual installation phase when encrypted partitions or volumes are being created. A dialog window will open in the graphical interface, showing progress and remaining time.The entropy gathering process can not be skipped or disabled. However, there are several ways to speed the process up:
- If you can access the system during the installation, you can supply additional entropy by pressing random keys on the keyboard and moving the mouse.
- If the system being installed is a virtual machine, you can attach a virtio-rng device (a virtual random number generator) as described in the Red Hat Enterprise Linux 7.1 Virtualization Deployment and Administration Guide.

圖形 3.3. Gathering Entropy for Encryption
圖形安裝程式中的內建說明

圖形 3.4. Anaconda built-in help

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.