电脑技术学习

使用JumpStart快速安装Solaris

dn001

  The following line in the finish script copIEs a file to the newly installed file system hierarchy on the client:

 cp /tmp/install_config/<file_name> /a/<path_name>/

  f. Create the profile file:

  The profile file is a text file that defines how the Solaris OS is installed on a client.

  Multiple profile files can be created. Several clients can use the same profile file, or each client can have its own profile file. The following shows the creation of two profile files:

 # cd /export/config
 # vi profile1
 # install_type MUST be first
 install_type   initial_install
 # start with the minimal required number of packages
 cluster      SUNWCXall
 cluster      SUNWCapache delete
 cluster      SUNWCpcmc  delete
 cluster      SUNWCpcmcx delete
 cluster      SUNWCthai  delete
 cluster      SUNWClp   delete
 cluster      SUNWCnis  delete
 cluster      SUNWCppp  delete
 # format the entire disk for Solaris
 fdisk  all  solaris all
 # define how the disk is partitioned
 partitioning   explicit
 filesys      rootdisk.s0 6144 /
 filesys      rootdisk.s1 1024 swap
 filesys      rootdisk.s7 free /state/partition1
 # install systems as standalone
 system_type standalone
 # specify patches to install
 patch 119281-06 nfs 172.16.64.194:/export/patches
 # specify packages to install
 package SPROcc add nfs 172.16.64.194:/export/packages
 :wq
 # vi profile2
 # install_type MUST be first
 install_type   initial_install
 # start with the minimal required number of packages
 cluster      SUNWCXall
 cluster      SUNWCapache delete
 cluster      SUNWCpcmc  delete
 cluster      SUNWCpcmcx delete
 cluster      SUNWCthai  delete
 cluster      SUNWClp   delete
 cluster      SUNWCnis  delete
 cluster      SUNWCppp  delete
 # format the entire disk for Solaris
 fdisk  all  solaris all
 # define how the disk is partitioned
 partitioning   explicit
 filesys      rootdisk.s0 6144 /
 filesys      rootdisk.s1 4096 swap
 filesys      rootdisk.s7 free /state/partition1
 # install systems as standalone
 system_type standalone
 # specify patches to install
 patch 119281-06 nfs 172.16.64.194:/export/patches
 # specify packages to install
 package SPROcc add nfs 172.16.64.194:/export/packages
 :wq

  g. Create the check script:

标签: