This command adds a distribution group, disk partition, OS update, or custom installation script to an existing OS profile.
If no distribution groups are specified, the Core distribution group is used for the Solaris(TM) operating system, the Base distribution group is used for the Red Hat operating system, and the Default Installation group is used for the SUSE operating system. At least one partition (root) is required for a valid Solaris profile, and at least two partitions (root and swap) are required for a valid Linux profile.
Add a distribution group to an OS profile:
add osprofile osprofile distributiongroup distributiongroup |
Add disk partition information to an OS profile:
add osprofile osprofile partition partition device device maxsize maxsize size size sizeoption sizeoption type type |
Add an OS update to an OS profile:
add osprofile osprofile update update |
Add a custom installation script to an OS profile:
add osprofile osprofile script script type type |
device – The disk slice for the partition. Examples: c1t1d0s1 (Solaris) or sda (Linux).
distributiongroup – The name of a distribution group (group of packages) to install. If you do not specify a distribution group, the following will be installed: Core System Support (Solaris), Base (Red Hat), or Default Installation (SUSE). You can display the distribution group list for an OS by using the show os os command.
maxsize – (Red Hat only) The maximum size for the file system in Mbytes. This option enables you to put a limit on the free value for sizeoption.
osprofile – The name of an OS profile.
partition – The mount point name for the partition. Default value is / (root).
script – The name of a custom installation script. A fully qualified path is required.
size – The size of the file system in Mbytes. This option must be specified with the fixed value for sizeoption.
sizeoption – The way to size the file system. Valid values are:
fixed – The file system is set to a specific size, which is set by the size attribute.
free – The remaining unused space on the disk is used for the file system. With a Red Hat profile, you can specify maxsize to limit the size of the file system.
type (adding partition) – The type of file system. Default values areufs (Solaris) and ext3 (Linux). Valid values are:
Solaris: swap or ufs
Red Hat: ext2, ext3, swap, or vfat
SUSE: ext2, ext3, jfs, reiser, swap, or xfs
type (adding script) – The time when the custom script will run during the installation. Valid values are:
pre – Run the script before the installation (for example, drivers).
post – Run the script after the installation.
postnochroot – Run the script after the installation. The script does not have to be run as superuser (root).
update – The name of an OS update.