JavaScript is required to for searching.
跳過導航連結
結束列印檢視
Oracle Solaris 10 8/11 安裝指南:自訂 JumpStart 及進階安裝     Oracle Solaris 10 8/11 Information Library (繁體中文)
search filter icon
search icon

文件資訊

前言

第 1 部分使用自訂 JumpStart

1.  Solaris 安裝規劃資訊的位置

2.  自訂 JumpStart (簡介)

3.  準備自訂 JumpStart 安裝 (作業)

4.  使用可選的自訂 JumpStart 功能 (作業)

5.  建立自訂規則關鍵字與探測關鍵字 (作業)

探測關鍵字

建立 custom_probes 檔案

custom_probes 檔案的語法

custom_probes 中函數名稱的語法

建立 custom_probes 檔案

custom_probes 檔案與關鍵字的範例

驗證 custom_probes 檔案

驗證 custom_probes 檔案

6.  執行自訂 JumpStart 安裝 (作業)

7.  使用自訂 JumpStart 安裝 (範例)

8.  自訂 JumpStart (參考)

9.  使用 JumpStart 安裝 ZFS 根池

第 2 部分附錄

A.  疑難排解 (作業)

B.  附加的 SVR4 封裝需求 (參考)

字彙表

索引

驗證 custom_probes 檔案

使用設定檔、rules custom_probes 檔案之前,必須先執行 check 程序檔,驗證檔案是否設定正確。如果已正確設置所有的設定檔、規則以及探測函式與比對函式,系統會建立 rules.ok 檔案和 custom_probes.ok 檔案。表 5-1 說明 check 程序檔的作用。

表 5-1 使用 check 程序檔時發生的狀況

階段
說明
1
check 會搜尋 custom_probes 檔案。
2
如果該檔案存在,check 就會從 custom_probes 檔案建立 custom_probes.ok 檔案、移除所有註釋和空白行,並保留所有 Bourne shell 指令、變數和演算法。然後,check 會在結尾處增加以下註釋行:

# version=2 checksum=num

驗證 custom_probes 檔案

  1. 確認 check 程序檔是否位於 JumpStart 目錄中。

    備註 - check 程序檔位於 Oracle Solaris Operating System DVD 或 Solaris Software - 1 CD 的 Solaris_10/Misc/jumpstart_sample 目錄中。


  2. 變更至 JumpStart 目錄。
  3. 執行 check 程序檔來驗證 rulescustom_probes 檔案。
    $ ./check -p path -r file_name
    -p path

    請以所用平台之 Solaris 軟體影像的 check 程序檔驗證 custom_probes 檔案,而不要使用系統的 check 程序檔。path 是本機磁碟、或已掛載 Oracle Solaris Operating System DVD 或 Solaris Software - 1 CD 上的影像。

    如果您的系統目前執行的是舊版的 Solaris,您可以使用此選項來執行最新版的 check

    -r file_name

    指定一個與 custom_probes 檔名不相同的檔案名稱。將函式整合至 custom_probes 檔案之前,您可以先使用 -r 選項測試函式集合的有效性。

    check 程序檔執行時,此程序檔會報告 rulescustom_probes 檔案以及各個設定檔的有效性。如果沒有發生任何錯誤,程序檔會報告: 「自訂 JumpStart 配置正確」,並在 JumpStart 目錄中建立 rules.ok 檔案和 custom_probes.ok 檔案。

  4. 確定 custom_probes.ok 檔案是否可以執行。
    • 如果可以,請跳至 步驟 5

    • 如果不可以,請鍵入以下指令:

      # chmod +x custom_probes
  5. 確保 root 包含 custom_probes.ok 檔案,並且權限設定為 755。