电脑技术学习

使用JumpStart快速安装Solaris

dn001

  The check script is used to validate that the rules and profile files are correctly set up. First copy the check script to the local Directory, that is, /export/config, as shown:

 # cd /export/config
 # cp /export/install/Solaris_10/Misc/jumpstart_sample/check .

  h. Run the check script:

 # ./check
 Validating rules...
 Validating profile profile1...
 Validating profile profile2...
 The custom JumpStart configuration is ok.

  If no errors are found, the rules.ok file is created. This file is the same as the rules file but with its comments and blank lines removed. The check script adds the following comment to the end of the rules.ok file:

 # version=2 checksum=<num>

  3. Share the Installation and Configuration DirectorIEs

  a. Modify dfstab to share the JumpStart directories.

  b. Edit the /etc/dfs/dfstab file:

 # vi /etc/dfs/dfstab
 #    Place share(1M) commands here for automatic execution
 #    on entering init state 3.
 #
 #    Issue the command 'svCADm enable network/nfs/server' to
 #    run the NFS daemon processes and the share commands, after
 #    adding the very first entry to this file.
 #
 #    share [-F fstype] [ -o options] [-d "<text>"] <pathname>
 #    [resource]
 #    for example,
 #    share -F nfs -o rw=engineering -d "home dirs" /export/home2
 share -F nfs -o ro,anon=0 /export/install
 share -F nfs -o ro,anon=0 /export/config
 share -F nfs -o ro,anon=0 /export/patches
 share -F nfs -o ro,anon=0 /export/packages
 :wq

  c. Start the NFS server.

标签: