JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 4: File Formats     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

File Formats

addresses(4)

admin(4)

ai_manifest(4)

alias(4)

aliases(4)

a.out(4)

au(4)

audit_class(4)

audit_event(4)

audit.log(4)

auth_attr(4)

autofs(4)

bart_manifest(4)

bart_rules(4)

bootparams(4)

cardbus(4)

compver(4)

contents(4)

contract(4)

copyright(4)

core(4)

crypt.conf(4)

crypto_certs(4)

dacf.conf(4)

dat.conf(4)

dc_manifest(4)

defaultdomain(4)

default_fs(4)

defaultrouter(4)

depend(4)

device_allocate(4)

device_contract(4)

device_maps(4)

devices(4)

devid_cache(4)

devname_cache(4)

dfstab(4)

dhcp_inittab(4)

dhcp_network(4)

dhcpsvc.conf(4)

dhcptab(4)

dialups(4)

dir(4)

dir_ufs(4)

d_passwd(4)

driver(4)

driver.conf(4)

ds.log(4)

dumpdates(4)

ethers(4)

exec_attr(4)

fbtab(4)

fd(4)

fdi(4)

flash_archive(4)

format.dat(4)

forward(4)

fs(4)

fspec(4)

fstypes(4)

ftp(4)

ftpusers(4)

fx_dptbl(4)

gateways(4)

geniconvtbl(4)

group(4)

gsscred.conf(4)

hba.conf(4)

holidays(4)

hosts(4)

hosts.equiv(4)

ib(4)

idnkit.pc(4)

ike.config(4)

ike.preshared(4)

inetd.conf(4)

inet_type(4)

infiniband_hca_persistent_cache(4)

init.d(4)

inittab(4)

ipaddrsel.conf(4)

ipf(4)

ipf.conf(4)

ipnat(4)

ipnat.conf(4)

ipnodes(4)

ippool(4)

ippool.conf(4)

isa(4)

issue(4)

kadm5.acl(4)

kdc.conf(4)

keytables(4)

krb5.conf(4)

label_encodings(4)

ldapfilter.conf(4)

ldapsearchprefs.conf(4)

ldaptemplates.conf(4)

llc2(4)

logadm.conf(4)

logindevperm(4)

loginlog(4)

magic(4)

md.cf(4)

mddb.cf(4)

mdi_ib_cache(4)

mdi_scsi_vhci_cache(4)

md.tab(4)

mech(4)

meddb(4)

mnttab(4)

mod_ipp(4)

mpapi.conf(4)

named.conf(4)

ncad_addr(4)

nca.if(4)

ncakmod.conf(4)

ncalogd.conf(4)

ncaport.conf(4)

ndmp(4)

ndpd.conf(4)

netconfig(4)

netgroup(4)

netid(4)

netmasks(4)

netrc(4)

networks(4)

nfs(4)

nfslog.conf(4)

nfssec.conf(4)

NISLDAPmapping(4)

nodename(4)

nologin(4)

note(4)

notrouter(4)

nscd.conf(4)

nss(4)

nsswitch.conf(4)

packingrules(4)

pam.conf(4)

pam.d(4)

passwd(4)

path_to_inst(4)

pci(4)

pcie(4)

pci_unitaddr_persistent(4)

phones(4)

pkginfo(4)

pkgmap(4)

plot(4B)

policy.conf(4)

priv_names(4)

proc(4)

process(4)

prof_attr(4)

profile(4)

project(4)

protocols(4)

prototype(4)

pseudo(4)

publickey(4)

qop(4)

queuedefs(4)

rcmscript(4)

rdc.cf(4)

registration_profile(4)

remote(4)

resolv.conf(4)

rhosts(4)

rmtab(4)

rndc.conf(4)

rpc(4)

rt_dptbl(4)

sasl_appname.conf(4)

sbus(4)

sccsfile(4)

scsi(4)

securenets(4)

sel_config(4)

sendmail(4)

sendmail.cf(4)

service_bundle(4)

service_provider.conf(4)

services(4)

shadow(4)

sharetab(4)

shells(4)

slp.conf(4)

slpd.reg(4)

smb(4)

smbautohome(4)

smhba.conf(4)

snapshot_cache(4)

sndr(4)

sock2path.d(4)

space(4)

ssh_config(4)

sshd_config(4)

submit.cf(4)

sulog(4)

sysbus(4)

syslog.conf(4)

system(4)

telnetrc(4)

term(4)

terminfo(4)

TIMEZONE(4)

timezone(4)

TrustedExtensionsPolicy(4)

ts_dptbl(4)

ttydefs(4)

ttysrch(4)

ufsdump(4)

updaters(4)

user_attr(4)

utmp(4)

utmpx(4)

vfstab(4)

volume-config(4)

volume-defaults(4)

volume-request(4)

wanboot.conf(4)

warn.conf(4)

wtmp(4)

wtmpx(4)

ypfiles(4)

yppasswdd(4)

ypserv(4)

zoneinfo(4)

dc_manifest

- Distribution constructor manifest file format

Synopsis

/usr/share/install/dc.dtd.1

Description

The distribution constructor (DC) can be used to build Oracle Solaris installation images.

DC XML manifest files are used as input to the distribution constructor. These manifests define the image that the distribution constructor builds. You can use different manifests to build different kinds of images. See the “Files” section for a list of template manifests that are available.

Use the distro_const command to build images, referencing a manifest file in the command. If you want to customize the image specifications, copy a manifest file, customize the copy, and use the copy as input for the distro_const command when you build the image.

At a minimum, you need to edit the target element in the manifest to specify the location of the build area where the image can be constructed. And, you need to edit the software name element to specify the publisher and repository location that contain the packages needed to build the image.

Manifest Sections

The manifests include the following primary elements.


Note - The default elements and attributes provided below vary depending on which manifest is used.


Image Name and Proxy Section

This element provides the default name, Oracle_Solaris_Text_X86, for the image that you plan to build. You can use this name, or provide a unique name for your image.

If you intend to perform a series of builds of an image and retain the incremental images, change the add_timestamp attribute value to true to automatically append a time stamp to the name for each image.

If you need to specify an HTTP proxy, use the version of the distro element that includes the http_proxy attribute, and enter the proxy location as shown in the following example:

<distro name="Oracle_Solaris_Text_SPARC" add_timestamp="false"
    http_proxy="http://example.com">

Boot Menu Modifications Section

This element specifies boot menu modifications to be applied to the image.

In the following example, a specialized boot menu with the title myentry will be applied to the image. The timeout attribute specifies time before the default boot entry is automatically activated.

<boot_mods title="myentry" timeout="5">

You can add individual boot menu entries by adding a new boot_entry element for each new entry. Entries are added sequentially to the boot menu in the order based on the insert_at attribute value of start or end for each boot entry.


Note - Add new entries before any assistive_tech=magnifier entry.

See the following boot_mods element in the dc_livecd.xml sample manifest:


<boot_mods>
  <boot_entry>
    <title_suffix>with magnifier</title_suffix>
    <kernel_args>-B assistive_tech=magnifier</kernel_args>
  </boot_entry>
    <title_suffix>with screen reader</title_suffix>
    <kernel_args>-B assistive_tech=reader</kernel_args>
  </boot_entry>
</boot_mods>

Since a title sub-element is not included in this example, the default is used. The default title is the first line of /etc/release.

The title_suffix is a required sub-element, a text string to be appended to the entry title. An optional kernel_args sub-element passes kernel arguments to the boot loader.

Optional attributes for the boot_entry element include:

default_entry

Set this attribute to “true” to make this boot entry the default. If more than one entry is set to “true”, the last entry defined as such will override preceding entries.

insert_at

Set value to “start” or “end” to indicate insertion point relative to other boot entries.

Installation Target Section

This element defines the ZFS build dataset to be used for the build. This dataset is the area where the image will be created. The filesystem name should not include the zpool name.

<target>
  <logical>
    <zpool name="rpool" action="use_existing">
      <filesystem name="dc/text" action="preserve"/>
    </zpool>
  </logical>
</target>

Software Source Section: Transfer IPS Packages

This section specifies where the distribution constructor can get packages to download and use to build the image.

Image Packaging System (IPS) publishers provide packages in one or more package repositories.

In the source element in this section, edit the publisher name and origin name to specify which publisher to use and where the package repository is located. Multiple publishers can be listed. When the distribution constructor attempts to locate packages to install, publishers are searched in the order in which they are listed in the source element. Use the mirror sub-element to specify a mirror repository location. See the pkg(5) man page for information about IPS publishers and repositories.

<source>
  <publisher name="solaris">
    <origin name="http://pkg.oracle.com/solaris/release"/>
  </publisher>
  <publisher name="solaris">
    <origin name="http://example.com/"></origin>
    <mirror name="mirror1.example.com"></mirror>
    <mirror name="mirror2.example.com"></mirror>
  </publisher>
</source>

Note - This element also includes a destination tag which specifies the data mount point to be used during the build of the image. Changing the destination attribute is not recommended.


Software Packages Section: Install

This software_data element with the install attribute lists the set of packages to be installed in order to build a particular type of image, depending on which manifest you are using. For example, the dc_text_x86.xml manifest lists the packages needed to build a text install image.

Each name element lists one package name.

<software_data action="install" type="IPS">
  <name>pkg:/entire@latest</name>
  <name>pkg:/group/system/solaris-large-server</name>
  <name>pkg:/system/install/text-install</name>
  <name>pkg:/system/install/media/internal</name>
</software_data>

If you have packages that you want to add to the image, append the package names by adding a name element for each package.

By default, the most current package version available in the specified repository is installed. If another version is required, include the version portion of the package FMRI as shown in the following example:

<name>pkg:/entire@0.5.11-0.165</name>

Use the following command to check which versions are available.

$ pkg list -af entire

Note - Do not remove the installation of the packaged named entire. The packaged named entire is an incorporation used to manage multiple packages.


Software Packages Section: Uninstall

The software_data element with the uninstall attribute can be used to uninstall an individual package.

<software_data action="uninstall" type="IPS">
  <name>pkg:/editor/nano</name>
</software_data>

Software Source Section: Set IPS Attributes

This element affects a system after that system has been installed with the image created using the distribution constructor.

In the source element, use the publisher name and optional mirror name to specify where the installed system can access additional packages to download and install.

<source>
  <publisher name="solaris">
    <origin name="http://pkg.oracle.com/solaris/release/"/>
  </publisher>
</source>

Software Section: Boot Archive

The software element with name attribute ba-init lists the files and directories to be installed or uninstalled in the boot archive for the image that is built. See the comments in the manifest file for information.


Caution

Caution - Modifying the boot archive contents could render the system unbootable.


Execution and Checkpoint Section

The execution element in the manifest lists a series of checkpoints that are executed during the image construction process. Checkpoints are executed in the order in which they are listed in this section. The default checkpoints needed to build the default installation image are included in each manifest.

Each checkpoint element includes the mod-path attribute, which specifies where the checkpoint script is located.

Use the distro_const command options to control pausing and restarting the build process at particular checkpoints.

Some of the checkpoint sub-elements include arguments with default values provided. See the manifest comments for details.

If you create a custom script to be used during the building of an image, you must add a checkpoint element pointing to the script location. See the following example about how to add a new checkpoint element to point to a custom script. A user creates a custom script, /tmp/myscript.sh, to run in the build process after the default transfer-ips-checkpoint. To point to the new script, add the following element to the manifest after the transfer-ips-install checkpoint.

<checkpoint name="custom1"
  desc="my new script"
  mod_path="solaris_install/distro_const/checkpoints/custom_script"
  checkpoint_class="CustomScript">
  <args>/tmp/myscript.sh {PKG_IMAGE_PATH}filearg arg2</args>
</checkpoint>

Where filearg and arg2 are arguments the script takes, and filearg is the name of a file in $PKG_IMAGE_PATH. See the “Environment Variables” section below for a description of PKG_IMAGE_PATH.


Note - Multiple custom checkpoints can be specified in a DC manifest. Each checkpoint must have a unique name.


Configuration Section

The configuration element in the manifest lists SMF service profiles that are applied to the media during the image construction process. These SMF services specify which services will be running, or not running, on the booted media. The profiles are applied in the order in which they are specified in this element.

This element would rarely be modified.

Environment Variables

The following environment variables are used only with custom checkpoint scripts. See the example in “Execution and Checkpoint Section” above.

PKG_IMAGE_PATH

Replaced by distro_const during execution with ZFS_dataset/build_data/pkg_image.

BOOT_ARCHIVE

Replaced by distro_const during execution with ZFS_dataset/build_data/boot_archive.

Files

The following manifest files can be used to build various Oracle Solaris images. These manifests are included in the distribution-constructor package.

/usr/share/distro_const/dc_livecd.xml

To build x86 Oracle Solaris Live DVD images.

/usr/share/distro_const/dc_ai_x86.xml

To build x86 automated installation images.

/usr/share/distro_const/dc_ai_sparc.xml

To build SPARC automated installation images.

/usr/share/distro_const/dc_text_x86.xml

To build x86 text installation images.

/usr/share/distro_const/dc_text_sparc.xml

To build SPARC text installation images.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
install/distribution-constructor
Interface Stability
Uncommitted

See Also

distro_const(1M), pkg(1)

Creating a Custom Oracle Solaris 11 Installation Image