章 3. 安裝和開機

3.1. 安裝程式

Red Hat Enterprise Linux 安裝程式 Anaconda 已增強,以便改善 Red Hat Enterprise Linux 7 的安裝程序。

介面

  • 圖形安裝程式介面現在包含了一個額外畫面,此畫面能配置進行安裝程序時的 Kdump kernel 當機傾印機制。先前這是在安裝完成後透過使用 firstboot 工具程式來進行配置的,然而在沒有圖形介面的情況下將無法存取這項工具程式。現在,您可在一部沒有圖形環境的系統上,在進行安裝程序時配置 Kdump。新的畫面能透過主要的安裝程式選單(安裝概要)來存取。
    新的 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 中。
    就預設值,可用的設定檔案為 defaultthin-performance,並且定義於 /etc/lvm/profile 目錄中。欲取得額外資訊,請參閱 lvm(8) man page。
  • The behavior of the --size= and --percent= options of the logvol command has changed. Previously, the --percent= option was used together with --grow and --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 same logvol command.
  • autostep Kickstart 指令的 --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=:這是個選用性、以逗號區隔開的一列橋接介面卡參數。可用的值有 stppriorityforward-delayhello-timemax-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:
    Gathering Entropy for Encryption

    圖形 3.3. Gathering Entropy for Encryption

圖形安裝程式中的內建說明

安裝程式圖形介面中的各個畫面以及 Initial Setup 工具程式中現在皆有個「說明」按鈕位於右上方角落。按下此按鈕將會以 Yelp 說明瀏覽器開啟《安裝指南》中,與目前畫面相關的部分。
Anaconda built-in help

圖形 3.4. Anaconda built-in help