設定檔是一個文字檔,定義如何將 Solaris 軟體安裝在系統上。設定檔定義安裝的元素,例如,要安裝的軟體群組。每套規則都能指定用來定義如何安裝系統的設定檔。 您可以為每套規則建立不同的設定檔,或者在多套規則中使用的相同設定檔。
設定檔由一個或多個設定檔關鍵字和它們的值構成。每個設定檔關鍵字都是一個指令,對於 JumpStart 程式要如何將 Solaris 軟體安裝在系統上,它能夠控制一方面。例如,下列設定檔關鍵字和值能夠指定 JumpStart 程式將系統安裝成伺服器:
system_type server |
如果您使用為連上網路的系統建立設定檔伺服器或建立獨立系統的設定檔磁片所提供的程序來建立 JumpStart 目錄,則設定檔範例已位於 JumpStart 目錄中。
設定檔可包含以下物件:
使用文字編輯程式來建立文字檔案。 以說明的方式為檔案命名。或者,在您所建立的 JumpStart 目錄中開啟設定檔範例。
請確定設定檔的名稱能夠反映出您要如何使用設定檔將 Solaris 軟體安裝在系統上。例如,您可以將設定檔命名為 basic_install、eng_profile 或 user_profile。
在設定檔中增加設定檔關鍵字和值。
如需設定檔關鍵字和值的清單,請參閱設定檔關鍵字和值。
設定檔關鍵字和其值是區分大小寫的。
將設定檔儲存在 JumpStart 目錄中。
確定 root 中含有設定檔,且許可權已設為 644。
測試設定檔(選擇性)。
測試設定檔中包含測試設定檔的相關資訊。
以下的設定檔範例展示如何使用不同的設定檔關鍵字和設定檔值來控制將 Solaris 軟體安裝在系統上的方式。設定檔關鍵字和值中包含設定檔關鍵字和值的說明。
# profile keywords profile values # ----------------- ----------------- install_type initial_install1 system_type standalone2 partitioning default3 filesys any 512 swap # specify size of /swap cluster SUNWCprog4 package SUNWman delete5 cluster SUNWCacc |
每個設定檔都需要關鍵字 install_type。
關鍵字 system_type 將要安裝的系統定義成獨立的系統。
以 default 值安裝的系統可決定檔案系統片段。swap 的大小設為 512 MB,可安裝在任何磁碟上,其值為 any。
Developer Solaris Software Group,SUNWCprog,已安裝在系統上。
如果標準線上援助頁從檔案伺服器 s_ref 裝載在網路上,則線上援助頁套裝軟體並不會安裝在系統上。包含「系統會計」公用程式的套裝軟體會選出來安裝在系統上。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone partitioning explicit1 filesys c0t0d0s0 auto / filesys c0t3d0s1 auto swap filesys any auto usr cluster SUNWCall2 |
檔案系統片段由關鍵字 filesys 決定,其值為 explicit。root (/) 的大小以選定的軟體為基礎,其值為 auto,並安裝在 c0t0d0s0 上。swap 的大小會設成必要的大小,並安裝在 c0t3d0s1 上。usr 是以選定的軟體為基礎,且安裝程式可以any 的值為基礎,來決定要將 usr 安裝在何處。
Entire Solaris Software Group,SUNWCall,已安裝在系統上。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone fdisk c0t0d0 0x04 delete1 fdisk c0t0d0 solaris maxfree2 cluster SUNWCall3 cluster SUNWCacc delete4 |
從 c0t0d0 磁碟刪除所有 DOSOS 16 (04 十六進位) 類型的fdisk 分割區。
在 c0t0d0 磁碟的最大連續可用空間建立 Solaris fdisk 分割區。
Entire Solaris Software Group,SUNWCall,已安裝在系統上。
不打算在系統上安裝系統的會計公用程式 SUNWCacc。
# profile keywords profile values # ---------------- ------------------- install_type upgrade1 root_device c0t3d0s22 backup_media remote_filesystem timber:/export/scratch3 layout_constraint c0t3d0s2 changeable 1004 layout_constraint c0t3d0s4 changeable layout_constraint c0t3d0s5 movable package SUNWbcp delete5 package SUNWxwman add6 cluster SUNWCacc add locale de7 |
設定檔可藉由重新配置磁碟空間來升級系統。在此範例中,由於系統上的一些檔案系統並沒有足夠的空間來進行升級,因此必須重新配置磁碟空間。
c0t3d0s2 上的根檔案系統已完成升級。
名為 timber 的遠端系統可用來在磁碟空間的重新配置期間備份資料。有關備份媒體關鍵字的值,請參閱 backup_media 設定檔關鍵字。
當自動版面配置要重新配置磁碟空間以進行升級時,關鍵字 layout_constraint 可指定自動版面配置執行下列事項。
變更片段 2 和 片段 4。 這些片段可移動到另一個位置,大小也可以變更。
移動片段 5。 此片段可移動到另一個位置,但無法變更其大小。
二進制相容性套裝軟體,SUNWbcp,在升級後不會安裝在系統上。
如果「 X Window 系統」線上援助頁和「系統會計公用程式」並未安裝在系統上,此程式碼可確定將其進行安裝。系統上的所有套裝軟體都會自動升級。
系統上將會安裝德文本土化套裝軟體。
下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 HTTP 伺服器的 Solaris Flash 歸檔。
install_type flash_install archive_location http installserver /flasharchive/solaris9archive partitioning explicit filesys c0t1d0s0 4000 / filesys c0t1d0s1 512 swap filesys c0t1d0s7 free /export/home
下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 NFS 伺服器的 Solaris Flash 歸檔。
install_type flash_install archive_location nfs installserver:/export/solaris/flasharchive/solaris9archive partitioning explicit filesys rootdisk.s0 6000 / filesys rootdisk.s1 512 swap filesys rootdisk.s7 free /export/home
設定檔可包含以下物件:
使用文字編輯程式來建立文字檔案。 以說明的方式為檔案命名。或者,在您所建立的 JumpStart 目錄中開啟設定檔範例。
請確定設定檔的名稱能夠反映出您要如何使用設定檔將 Solaris 軟體安裝在系統上。例如,您可以將設定檔命名為 basic_install、eng_profile 或 user_profile。
在設定檔中增加設定檔關鍵字和值。
如需設定檔關鍵字和值的清單,請參閱設定檔關鍵字和值。
設定檔關鍵字和其值是區分大小寫的。
將設定檔儲存在 JumpStart 目錄中。
確定 root 中含有設定檔,且許可權已設為 644。
測試設定檔(選擇性)。
測試設定檔中包含測試設定檔的相關資訊。
以下的設定檔範例展示如何使用不同的設定檔關鍵字和設定檔值來控制將 Solaris 軟體安裝在系統上的方式。設定檔關鍵字和值中包含設定檔關鍵字和值的說明。
# profile keywords profile values # ----------------- ----------------- install_type initial_install1 system_type standalone2 partitioning default3 filesys any 512 swap # specify size of /swap cluster SUNWCprog4 package SUNWman delete5 cluster SUNWCacc |
每個設定檔都需要關鍵字 install_type。
關鍵字 system_type 將要安裝的系統定義成獨立的系統。
以 default 值安裝的系統可決定檔案系統片段。swap 的大小設為 512 MB,可安裝在任何磁碟上,其值為 any。
Developer Solaris Software Group,SUNWCprog,已安裝在系統上。
如果標準線上援助頁從檔案伺服器 s_ref 裝載在網路上,則線上援助頁套裝軟體並不會安裝在系統上。包含「系統會計」公用程式的套裝軟體會選出來安裝在系統上。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone partitioning explicit1 filesys c0t0d0s0 auto / filesys c0t3d0s1 auto swap filesys any auto usr cluster SUNWCall2 |
檔案系統片段由關鍵字 filesys 決定,其值為 explicit。root (/) 的大小以選定的軟體為基礎,其值為 auto,並安裝在 c0t0d0s0 上。swap 的大小會設成必要的大小,並安裝在 c0t3d0s1 上。usr 是以選定的軟體為基礎,且安裝程式可以any 的值為基礎,來決定要將 usr 安裝在何處。
Entire Solaris Software Group,SUNWCall,已安裝在系統上。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone fdisk c0t0d0 0x04 delete1 fdisk c0t0d0 solaris maxfree2 cluster SUNWCall3 cluster SUNWCacc delete4 |
從 c0t0d0 磁碟刪除所有 DOSOS 16 (04 十六進位) 類型的fdisk 分割區。
在 c0t0d0 磁碟的最大連續可用空間建立 Solaris fdisk 分割區。
Entire Solaris Software Group,SUNWCall,已安裝在系統上。
不打算在系統上安裝系統的會計公用程式 SUNWCacc。
# profile keywords profile values # ---------------- ------------------- install_type upgrade1 root_device c0t3d0s22 backup_media remote_filesystem timber:/export/scratch3 layout_constraint c0t3d0s2 changeable 1004 layout_constraint c0t3d0s4 changeable layout_constraint c0t3d0s5 movable package SUNWbcp delete5 package SUNWxwman add6 cluster SUNWCacc add locale de7 |
設定檔可藉由重新配置磁碟空間來升級系統。在此範例中,由於系統上的一些檔案系統並沒有足夠的空間來進行升級,因此必須重新配置磁碟空間。
c0t3d0s2 上的根檔案系統已完成升級。
名為 timber 的遠端系統可用來在磁碟空間的重新配置期間備份資料。有關備份媒體關鍵字的值,請參閱 backup_media 設定檔關鍵字。
當自動版面配置要重新配置磁碟空間以進行升級時,關鍵字 layout_constraint 可指定自動版面配置執行下列事項。
變更片段 2 和 片段 4。 這些片段可移動到另一個位置,大小也可以變更。
移動片段 5。 此片段可移動到另一個位置,但無法變更其大小。
二進制相容性套裝軟體,SUNWbcp,在升級後不會安裝在系統上。
如果「 X Window 系統」線上援助頁和「系統會計公用程式」並未安裝在系統上,此程式碼可確定將其進行安裝。系統上的所有套裝軟體都會自動升級。
系統上將會安裝德文本土化套裝軟體。
下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 HTTP 伺服器的 Solaris Flash 歸檔。
install_type flash_install archive_location http installserver /flasharchive/solaris9archive partitioning explicit filesys c0t1d0s0 4000 / filesys c0t1d0s1 512 swap filesys c0t1d0s7 free /export/home
下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 NFS 伺服器的 Solaris Flash 歸檔。
install_type flash_install archive_location nfs installserver:/export/solaris/flasharchive/solaris9archive partitioning explicit filesys rootdisk.s0 6000 / filesys rootdisk.s1 512 swap filesys rootdisk.s7 free /export/home