The procedure to use pfinstall to test a profile involves testing the command in the JumpStart directory.
On an installed and configured Trusted Solaris workstation, log in as a user who can assume the role root.
As root at label admin_low
,
launch a terminal and see that the pfinstall(1M) command is available in the role's profile
shell.
# clist | grep pfinstall |
The name profile shell refers to a shell that recognizes Trusted Solaris execution profiles. It does not refer to the machine profiles being tested here.
To test the profile with a specific system memory size, set SYS_MEMSIZE to the specific memory size in Mbytes:
# SYS_MEMSIZE=memory_size # export SYS_MEMSIZE |
Change the directory to the JumpStart directory where the profile resides:
$ cd jumpstart_dir_path |
For example, the following command would change the directory to the jumpstart directory on the root file system.
$ cd /jumpstart |
Run the pfinstall -d or pfinstall -D command to test the profile:
$ /usr/sbin/install.d/pfinstall -D | -d disk_config [-c path] profile |
Without the -d or -D option, pfinstall will install the Trusted Solaris software on the workstation by using the specified profile, and the data on the workstation will be overwritten.
In this command,
Tells pfinstall to use the current workstation's disk configuration to test the profile against. You must be in the role root to execute pfinstall with the -D option.
Tells pfinstall to use a disk configuration file, disk_config, to test the profile against.
Is the path to the Trusted Solaris CD. This is required if the Trusted Solaris CD is not mounted on /cdrom. (For example, use this option if you copied the Trusted Solaris CD image to disk or mounted the Trusted Solaris CD on a directory other than /cdrom).
The name of the profile to test.
You should run pfinstall on a workstation running the same version of Trusted Solaris software that will be installed by the profile.
Run pfinstall from the directory where the profile and disk_config files reside (which should be the JumpStart directory). If the profile or disk_config file is not in the directory where pfinstall is run, you must specify the path.
Check to see if the results of pfinstall are as you expected. If not, change the profile and go to Step Step 5.
You have completed testing the profile. To perform a custom JumpStart installation on a workstation, see Chapter 3, Installing a Workstation.