Solaris 8 Advanced Installation Guide

Syntax of a Rule

A rule must contain at least a:

A rule within a rules file must adhere to the following syntax:

[[!]]rule_keyword rule_value [[&& [[!]]rule_keyword rule_value]] ... begin  profile  finish
Table 18–2 Syntax Elements of a Rule

Element 

Description 

!

Is a symbol used before a keyword to indicate negation. 

rule_keyword

Is a predefined lexical unit or word that describes a general system attribute, such as host name (hostname) or memory size (memsize). It is used with the rule value to match a system with the same attribute to a profile. See Table 18–3 for the list of rule keywords.

rule_value

Is a value that provides the specific system attribute for the corresponding rule keyword. Rule values are described in Table 18–3.

&&

Is a symbol you must use to join rule keyword and rule value pairs together in the same rule (a logical AND). During a custom JumpStart installation, a system must match every pair in the rule before the rule matches. 

begin

Is the name of an optional Bourne shell script that can be executed before the installation begins. If no begin script exists, you must enter a minus sign (-) in this field. All begin scripts must be located in the JumpStart directory.

Information about how to create begin scripts is presented in Creating Begin Scripts.

profile

Is the name of a text file that defines how the Solaris software is to be installed on the system when a system matches the rule. The information in a profile consists of profile keywords and their corresponding profile values. All profiles must be located in the JumpStart directory. 


Note –

Optional ways to use the profile field are described in Using a Site-Specific Installation Program and Creating Derived Profiles With a Begin Script.


finish

Is the name of an optional Bourne shell script that can be executed after the installation completes. If no finish script exists, you must enter a minus sign (-) in this field. All finish scripts must be located in the JumpStart directory.  

Information about how to create finish scripts is presented in Creating Finish Scripts.