JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 10 1/13 Installation Guide: JumpStart Installations     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information


1.  Where to Find Oracle Solaris Installation Planning Information

2.  JumpStart (Overview)

3.  Preparing JumpStart Installations (Tasks)

4.  Using Optional JumpStart Features (Tasks)

Creating Begin Scripts

About Begin Scripts

Creating Derived Profiles With a Begin Script

Tracking Installation Duration With a Begin Script and Finish Script

Creating Finish Scripts

About Finish Scripts

Adding Files With a Finish Script

Adding Packages or Patches With a Finish Script

Customizing the Root Environment With a Finish Script

Non-Interactive Installations With Finish Scripts

Creating a Compressed Configuration File

How to Create a Compressed Configuration File

Creating Disk Configuration Files

SPARC: How to Create a Single-Disk Configuration File

SPARC: How to Create a Multiple-Disk Configuration File

x86: How to Create a Single-Disk Configuration File

x86: How to Create a Multiple-Disk Configuration File

Using a Site-Specific Installation Program

5.  Creating Custom Rule and Probe Keywords (Tasks)

6.  Performing a JumpStart Installation (Tasks)

7.  Installing With JumpStart (Examples)

8.  JumpStart Keyword Reference

9.  Installing a ZFS Root Pool With JumpStart



Creating Begin Scripts

A begin script is a user-defined Bourne shell script that you specify in the rules file. A begin script performs tasks before the Oracle Solaris software is installed on a system. You can use begin scripts only when using JumpStart to install the Oracle Solaris software.

Use a begin script to perform the following tasks:

About Begin Scripts

Note - For the Oracle Solaris 10 release, a sample JumpStart script, set_nfs4_domain, was provided on media to prevent being prompted during a JumpStart installation. This script suppressed the NFSv4 prompt during installation. This script is no longer required. Starting with the Solaris 10 5/09 release, use the sysidcfg keyword nfs4_domain to suppress the prompt. The set_nfs4_domain script no longer works to suppress a prompt.

If you have non-global zones installed and the new nfs4_domain keyword exists in the sysidcfg file, the first boot of a non-global zone sets the domain. Otherwise, the Oracle Solaris interactive installation program starts and you are prompted to provide a domain name before the boot process completes.

See nfs4_domain Keyword in Oracle Solaris 10 1/13 Installation Guide: Network-Based Installations

Creating Derived Profiles With a Begin Script

A derived profile is a profile that is dynamically created by a begin script during a JumpStart installation. Derived profiles are needed when you cannot set up the rules file to match specific systems to a profile. For example, you might need to use derived profiles for identical system models that have different hardware components, such as systems that contain different frame buffers.

To set up a rule to use a derived profile, you must perform the following tasks:

When a system matches a rule with the profile field equal to an equal sign (=), the begin script creates the derived profile that is used to install the Oracle Solaris software on the system.

The following example shows a begin script that creates the same derived profile every time. You can write a begin script to create different derived profiles that depend on the evaluation of rules.

Example 4-1 Begin Script That Creates a Derived Profile

echo "install_type        initial_install"    > ${SI_PROFILE}
echo "system_type         standalone"        >> ${SI_PROFILE}
echo "partitioning        default"           >> ${SI_PROFILE}
echo "cluster             SUNWCprog"         >> ${SI_PROFILE}
echo "package       SUNWman     delete"      >> ${SI_PROFILE}
echo "package       SUNWolman   delete"      >> ${SI_PROFILE}
echo "package       SUNWxwman   delete"      >> ${SI_PROFILE}

In the example, the begin script must use the SI_PROFILE environment variable for the name of the derived profile, which is set to /tmp/install.input by default.

Note - If a begin script is used to create a derived profile, ensure the script does not have any errors. A derived profile is not verified by the check script because derived profiles are not created until the execution of the begin script.

Tracking Installation Duration With a Begin Script and Finish Script

You can include a begin script and a finish script to track the start time and end time of an installation, as shown in the following examples.

Example 4-2 Begin Script That Tracks Starting Time

# more begin-with-date

echo "Noting time that installation began in /tmp/install-begin-time"
echo "Install begin time: `date`" > /tmp/install-begin-time
cat /tmp/install-begin-time

Example 4-3 Finish Script That Tracks Ending Time

# more finish*with*date

cp /tmp/install-begin-time /a/var/tmp
echo "Noting time that installation finished in /a/var/tmp/install-finish-time"
echo "Install finish time: `date`" > /a/var/tmp/install-finish-time
cat /a/var/tmp/install-finish-time

The start and end times will be recorded in the finish.log file.