以下的設定檔範例展示如何使用不同的設定檔關鍵字和設定檔值來控制將 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