Solaris Advanced Installation Guide

Adding Files With a Finish Script

Through a finish script, you can add files from the JumpStart directory to the already installed system. This is possible because the JumpStart directory is mounted on the directory specified by the SI_CONFIG_DIR variable (which is set to /tmp/install_config by default).


Note -

You can also replace files by copying files from the JumpStart directory to already existing files on the installed system.


The following procedure enables you to create a finish script to add files to a system after the Solaris software is installed on it:

How to Add Files With a Finish Script
  1. Copy all the files you want added to the installed system into the JumpStart directory.

  2. Insert the following line into the finish script for each file you want copied into the newly installed file system hierarchy.

    cp ${SI_CONFIG_DIR}/file_name /a/path_name
    

For example, assume you have a special application, site_prog, developed for all users at your site. If you place a copy of site_prog into the JumpStart directory, the following line in a finish script would copy the site_prog from the JumpStart directory into a system's /usr/bin directory during a custom JumpStart installation:


cp ${SI_CONFIG_DIR}/site_prog  /a/usr/bin